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