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