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