4 instantiations of StructWithDefaultCtor
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (3)
1217Assert.NotEqual(new StructWithDefaultCtor().Value, default(StructWithDefaultCtor).Value); 1228Assert.NotEqual(new StructWithDefaultCtor().Value, default(StructWithDefaultCtor).Value); 1261Assert.NotEqual(new StructWithDefaultCtor().Value, default(StructWithDefaultCtor).Value);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.StructWithDefaultCtor.g.cs (1)
33ObjectCreator = () => new global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor(),
21 references to StructWithDefaultCtor
Microsoft.Extensions.AI.Tests (21)
Functions\AIFunctionFactoryTest.cs (5)
1217Assert.NotEqual(new StructWithDefaultCtor().Value, default(StructWithDefaultCtor).Value); 1219AIFunction f = AIFunctionFactory.Create((Guid g = default, StructWithDefaultCtor s = default) => g.ToString() + "," + s.Value.ToString(), serializerOptions: JsonContext.Default.Options); 1228Assert.NotEqual(new StructWithDefaultCtor().Value, default(StructWithDefaultCtor).Value); 1261Assert.NotEqual(new StructWithDefaultCtor().Value, default(StructWithDefaultCtor).Value); 1820[JsonSerializable(typeof(StructWithDefaultCtor))]
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
28if (type == typeof(global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.StructWithDefaultCtor.g.cs (15)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor>? _StructWithDefaultCtor; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor> StructWithDefaultCtor 24get => _StructWithDefaultCtor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor> Create_StructWithDefaultCtor(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor), 60Getter = static obj => ((global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor)obj).Value, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 78private void StructWithDefaultCtorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor value) 82writer.WriteNumber(PropName_Value, ((global::Microsoft.Extensions.AI.AIFunctionFactoryTest.StructWithDefaultCtor)value).Value);