1 write to MemberName
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1208MemberName = memberInfo.Name,
9 references to MemberName
System.Text.Json.SourceGeneration (9)
JsonSourceGenerator.Emitter.cs (4)
636=> $"""static (obj, value) => throw new {InvalidOperationExceptionTypeRef}("{string.Format(ExceptionMessages.InaccessibleJsonIncludePropertiesNotSupported, typeGenerationSpec.TypeRef.Name, property.MemberName)}")""", 657? $"typeof({property.DeclaringType.FullyQualifiedName}).GetProperty({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName}, null, typeof({property.PropertyType.FullyQualifiedName}), {EmptyTypeArray}, null)" 658: $"typeof({property.DeclaringType.FullyQualifiedName}).GetField({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName})"; 674PropertyName = {{FormatStringLiteral(property.MemberName)}},
JsonSourceGenerator.Parser.cs (4)
1054string memberName = propertySpec.MemberName; 1530if (!(memberInitializerNames ??= new()).Add(property.MemberName)) 1550Name = property.MemberName, 1565=> propSpec.MemberName.Equals(paramSpec.Name, StringComparison.OrdinalIgnoreCase);
Model\PropertyGenerationSpec.cs (1)
32/// from the <see cref="MemberName"/> because source code might be decorated