1 write to MemberName
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1233
MemberName
= memberInfo.Name,
9 references to MemberName
System.Text.Json.SourceGeneration (9)
JsonSourceGenerator.Emitter.cs (4)
646
=> $"""static (obj, value) => throw new {InvalidOperationExceptionTypeRef}("{string.Format(ExceptionMessages.InaccessibleJsonIncludePropertiesNotSupported, typeGenerationSpec.TypeRef.Name, property.
MemberName
)}")""",
669
{ IsProperty: true } => $"typeof({property.DeclaringType.FullyQualifiedName}).GetProperty({FormatStringLiteral(property.
MemberName
)}, {InstanceMemberBindingFlagsVariableName}, null, typeof({propertyTypeFQN}), {EmptyTypeArray}, null)",
670
_ => $"typeof({property.DeclaringType.FullyQualifiedName}).GetField({FormatStringLiteral(property.
MemberName
)}, {InstanceMemberBindingFlagsVariableName})",
687
PropertyName = {{FormatStringLiteral(property.
MemberName
)}},
JsonSourceGenerator.Parser.cs (4)
1054
string memberName = propertySpec.
MemberName
;
1555
if (!(memberInitializerNames ??= new()).Add(property.
MemberName
))
1575
Name = property.
MemberName
,
1590
=> propSpec.
MemberName
.Equals(paramSpec.Name, StringComparison.OrdinalIgnoreCase);
Model\PropertyGenerationSpec.cs (1)
32
/// from the <see cref="
MemberName
"/> because source code might be decorated