1 write to MemberName
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1295MemberName = memberInfo.Name,
8 references to MemberName
System.Text.Json.SourceGeneration (8)
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 (3)
1116string memberName = propertySpec.MemberName; 1617if (!(memberInitializerNames ??= new()).Add(property.MemberName)) 1652=> propSpec.MemberName.Equals(paramSpec.Name, StringComparison.OrdinalIgnoreCase);
Model\PropertyGenerationSpec.cs (1)
32/// from the <see cref="MemberName"/> because source code might be decorated