3 writes to MemberName
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
336
jsonPropertyInfo.
MemberName
= propertyInfo.Name;
341
jsonPropertyInfo.
MemberName
= fieldInfo.Name;
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
183
propertyInfo.
MemberName
= propertyInfoValues.PropertyName;
10 references to MemberName
System.Text.Json (10)
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (2)
154
Debug.Assert(jsonPropertyInfo.
MemberName
!= null, "MemberName is not set by source gen");
155
ThrowHelper.ThrowInvalidOperationException_JsonIncludeOnInaccessibleProperty(jsonPropertyInfo.
MemberName
, jsonPropertyInfo.DeclaringType);
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
1073
=>
MemberName
== other.
MemberName
&& DeclaringType.IsAssignableFrom(other.DeclaringType);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
423
ThrowHelper.ThrowInvalidOperationException_IgnoreConditionOnValueTypeInvalid(
MemberName
!, DeclaringType);
System\Text\Json\Serialization\WriteStack.cs (1)
420
frame.JsonPropertyInfo?.
MemberName
??
System\Text\Json\ThrowHelper.Serialization.cs (4)
275
throw new InvalidOperationException(SR.Format(SR.SerializerPropertyNameNull, jsonPropertyInfo.DeclaringType, jsonPropertyInfo.
MemberName
));
388
throw new InvalidOperationException(SR.Format(SR.NumberHandlingOnPropertyInvalid, jsonPropertyInfo.
MemberName
, jsonPropertyInfo.DeclaringType));
545
throw new InvalidOperationException(SR.Format(SR.ExtensionDataConflictsWithUnmappedMemberHandling, classType, jsonPropertyInfo.
MemberName
));
551
throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.PropertyType, jsonPropertyInfo.
MemberName
));