42 references to Kind
System.Private.Xml (42)
System\Xml\Serialization\Models.cs (7)
48
switch (typeDesc.
Kind
)
197
if (model.ReadOnly && model.FieldTypeDesc.
Kind
!= TypeKind.Collection && model.FieldTypeDesc.
Kind
!= TypeKind.Enumerable)
223
if (fieldInfo.IsInitOnly && typeDesc.
Kind
!= TypeKind.Collection && typeDesc.
Kind
!= TypeKind.Enumerable)
238
if (!propertyInfo.CanWrite && typeDesc.
Kind
!= TypeKind.Collection && typeDesc.
Kind
!= TypeKind.Enumerable)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
686
if (special.TypeDesc!.
Kind
== TypeKind.Node)
952
switch (specialMapping.TypeDesc!.
Kind
)
1917
if (special.TypeDesc!.
Kind
== TypeKind.Attribute)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
305
switch (specialMapping.TypeDesc!.
Kind
)
877
if (special.TypeDesc!.
Kind
== TypeKind.Attribute || special.TypeDesc.CanBeAttributeValue)
System\Xml\Serialization\SoapReflectionImporter.cs (5)
187
switch (model.TypeDesc.
Kind
)
298
if (model.TypeDesc.
Kind
== TypeKind.Root) return GetRootMapping();
742
if (!(fieldTypeDesc.
Kind
== TypeKind.Primitive || fieldTypeDesc.
Kind
== TypeKind.Enum))
748
if (fieldTypeDesc.
Kind
== TypeKind.Enum)
System\Xml\Serialization\Types.cs (2)
1089
if (typeDesc.
Kind
== TypeKind.Collection || typeDesc.
Kind
== TypeKind.Enumerable)
System\Xml\Serialization\XmlReflectionImporter.cs (12)
425
switch (model.TypeDesc.
Kind
)
459
if (model.TypeDesc.
Kind
== TypeKind.Serializable)
519
if (typeDesc.
Kind
== TypeKind.Serializable)
730
if (model.TypeDesc.
Kind
== TypeKind.Root) return GetRootMapping();
1580
if (accessor.TypeDesc.ArrayElementTypeDesc.
Kind
== TypeKind.Serializable)
1827
if (element.Mapping.TypeDesc!.
Kind
== TypeKind.Node)
1871
if (accessor.TypeDesc.
Kind
== TypeKind.Serializable)
2147
if (!(fieldTypeDesc.
Kind
== TypeKind.Primitive || fieldTypeDesc.
Kind
== TypeKind.Enum))
2154
if (fieldTypeDesc.
Kind
== TypeKind.Enum)
2239
bool isAny = mapping.TypeDesc!.
Kind
== TypeKind.Node;
2266
if (typeDesc.
Kind
== TypeKind.Node)
System\Xml\Serialization\XmlSchemaExporter.cs (1)
414
switch (mapping.TypeDesc!.
Kind
)
System\Xml\Serialization\XmlSerializationReader.cs (3)
3799
if (special.TypeDesc!.
Kind
== TypeKind.Attribute)
4079
switch (special.TypeDesc!.
Kind
)
4807
switch (special.TypeDesc!.
Kind
)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
2037
if (special.TypeDesc!.
Kind
== TypeKind.Attribute)
2320
switch (special.TypeDesc!.
Kind
)
3175
switch (special.TypeDesc!.
Kind
)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
3464
if (special.TypeDesc!.
Kind
== TypeKind.Attribute || special.TypeDesc.CanBeAttributeValue)
3897
switch (simple.TypeDesc!.
Kind
)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1360
if (special.TypeDesc!.
Kind
== TypeKind.Attribute || special.TypeDesc.CanBeAttributeValue)
1872
switch (specialMapping.TypeDesc!.
Kind
)