38 references to Kind
System.Xml (38)
System\Xml\Serialization\CodeExporter.cs (1)
199
TypeKind kind = arrayMapping.Elements[0].Mapping.TypeDesc.
Kind
;
System\Xml\Serialization\Models.cs (7)
42
switch (typeDesc.
Kind
) {
157
if (model.ReadOnly && model.FieldTypeDesc.
Kind
!= TypeKind.Collection && model.FieldTypeDesc.
Kind
!= TypeKind.Enumerable)
182
if (fieldInfo.IsInitOnly && typeDesc.
Kind
!= TypeKind.Collection && typeDesc.
Kind
!= TypeKind.Enumerable)
194
if (!propertyInfo.CanWrite && typeDesc.
Kind
!= TypeKind.Collection && typeDesc.
Kind
!= TypeKind.Enumerable)
System\Xml\Serialization\SoapReflectionImporter.cs (5)
202
switch (model.TypeDesc.
Kind
) {
295
if (model.TypeDesc.
Kind
== TypeKind.Root) return GetRootMapping();
684
if (!(fieldTypeDesc.
Kind
== TypeKind.Primitive || fieldTypeDesc.
Kind
== TypeKind.Enum)) {
689
if (fieldTypeDesc.
Kind
== TypeKind.Enum) {
System\Xml\Serialization\Types.cs (2)
980
if (typeDesc.
Kind
== TypeKind.Collection || typeDesc.
Kind
== TypeKind.Enumerable) {
System\Xml\Serialization\XmlReflectionImporter.cs (12)
370
switch (model.TypeDesc.
Kind
) {
401
if (model.TypeDesc.
Kind
== TypeKind.Serializable) {
452
if (typeDesc.
Kind
== TypeKind.Serializable) {
641
if (model.TypeDesc.
Kind
== TypeKind.Root) return GetRootMapping();
1365
if (accessor.TypeDesc.ArrayElementTypeDesc.
Kind
== TypeKind.Serializable) {
1586
if (element.Mapping.TypeDesc.
Kind
== TypeKind.Node) {
1623
if (accessor.TypeDesc.
Kind
== TypeKind.Serializable) {
1860
if (!(fieldTypeDesc.
Kind
== TypeKind.Primitive || fieldTypeDesc.
Kind
== TypeKind.Enum)) {
1866
if (fieldTypeDesc.
Kind
== TypeKind.Enum) {
1935
bool isAny = mapping.TypeDesc.
Kind
== TypeKind.Node;
1956
if (typeDesc.
Kind
== TypeKind.Node) {
System\Xml\Serialization\XmlSchemaExporter.cs (1)
394
switch (mapping.TypeDesc.
Kind
) {
System\Xml\Serialization\XmlSerializationReader.cs (3)
3544
if (special.TypeDesc.
Kind
== TypeKind.Attribute) {
3794
switch (special.TypeDesc.
Kind
) {
4411
switch (special.TypeDesc.
Kind
) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
2098
if (special.TypeDesc.
Kind
== TypeKind.Attribute) {
2373
switch (special.TypeDesc.
Kind
) {
3204
switch (special.TypeDesc.
Kind
) {
System\Xml\Serialization\XmlSerializationWriter.cs (2)
2356
if (special.TypeDesc.
Kind
== TypeKind.Attribute || special.TypeDesc.CanBeAttributeValue) {
2735
switch (mapping.TypeDesc.
Kind
) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1326
if (special.TypeDesc.
Kind
== TypeKind.Attribute || special.TypeDesc.CanBeAttributeValue) {
1818
switch (mapping.TypeDesc.
Kind
) {