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