3 writes to MemberType
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
338jsonPropertyInfo.MemberType = MemberTypes.Property; 342jsonPropertyInfo.MemberType = MemberTypes.Field;
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
184propertyInfo.MemberType = propertyInfoValues.IsProperty ? MemberTypes.Property : MemberTypes.Field;
9 references to MemberType
System.Text.Json (9)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
478if (propertyInfo.MemberType is MemberTypes.Property) 484Debug.Assert(propertyInfo.MemberType is MemberTypes.Field);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
161if (jsonPropertyInfo.MemberType == MemberTypes.Field && !jsonPropertyInfo.SrcGen_HasJsonInclude && !typeInfo.Options.IncludeFields)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (6)
532Debug.Assert(MemberType is 0 or MemberTypes.Field or MemberTypes.Property); 533if (MemberType == 0 || _ignoreCondition != null) 755Debug.Assert(MemberType == MemberTypes.Property || MemberType == MemberTypes.Field || MemberType == default); 756return MemberType switch