1 write to MemberName
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1233MemberName = 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})", 687PropertyName = {{FormatStringLiteral(property.MemberName)}},
JsonSourceGenerator.Parser.cs (4)
1054string memberName = propertySpec.MemberName; 1555if (!(memberInitializerNames ??= new()).Add(property.MemberName)) 1575Name = 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