108 references to TypeKind
dotnet-svcutil-lib (108)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (2)
223
TypeKind
kind = arrayMapping.Elements[0].Mapping.TypeDesc.Kind;
224
if (kind ==
TypeKind
.Node)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (14)
46
case
TypeKind
.Enum:
49
case
TypeKind
.Primitive:
52
case
TypeKind
.Array:
53
case
TypeKind
.Collection:
54
case
TypeKind
.Enumerable:
57
case
TypeKind
.Root:
58
case
TypeKind
.Class:
59
case
TypeKind
.Struct:
179
if (model.ReadOnly && model.FieldTypeDesc.Kind !=
TypeKind
.Collection && model.FieldTypeDesc.Kind !=
TypeKind
.Enumerable)
207
if (fieldInfo.IsInitOnly && typeDesc.Kind !=
TypeKind
.Collection && typeDesc.Kind !=
TypeKind
.Enumerable)
221
if (!propertyInfo.CanWrite && typeDesc.Kind !=
TypeKind
.Collection && typeDesc.Kind !=
TypeKind
.Enumerable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (12)
222
case
TypeKind
.Enum:
224
case
TypeKind
.Primitive:
226
case
TypeKind
.Array:
227
case
TypeKind
.Collection:
228
case
TypeKind
.Enumerable:
230
case
TypeKind
.Root:
231
case
TypeKind
.Class:
232
case
TypeKind
.Struct:
327
if (model.TypeDesc.Kind ==
TypeKind
.Root) return GetRootMapping();
767
if (!(fieldTypeDesc.Kind ==
TypeKind
.Primitive || fieldTypeDesc.Kind ==
TypeKind
.Enum))
773
if (fieldTypeDesc.Kind ==
TypeKind
.Enum)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (2)
327
structMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Struct, baseTypeDesc, flags);
631
enumMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Enum, null, 0);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (49)
80
private
TypeKind
_kind;
92
internal TypeDesc(string name, string fullName, XmlSchemaType dataType,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags, string formatterName)
99
_isXsdType = kind ==
TypeKind
.Primitive;
102
else if (kind ==
TypeKind
.Enum)
104
else if (_kind ==
TypeKind
.Root)
112
internal TypeDesc(string name, string fullName, XmlSchemaType dataType,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags)
115
internal TypeDesc(string name, string fullName,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags)
119
: this(type.Name, type.FullName, dataType,
TypeKind
.Primitive, (TypeDesc)null, flags, formatterName)
124
internal TypeDesc(Type type, string name, string fullName,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags, TypeDesc arrayElementTypeDesc)
193
internal
TypeKind
Kind
301
get { return _kind ==
TypeKind
.Void; }
306
get { return _kind ==
TypeKind
.Class; }
311
get { return _kind ==
TypeKind
.Struct || _kind ==
TypeKind
.Class; }
316
get { return _kind ==
TypeKind
.Array || _kind ==
TypeKind
.Collection || _kind ==
TypeKind
.Enumerable; }
321
get { return _kind ==
TypeKind
.Collection; }
326
get { return _kind ==
TypeKind
.Enumerable; }
331
get { return _kind ==
TypeKind
.Array; }
336
get { return _kind ==
TypeKind
.Primitive; }
341
get { return _kind ==
TypeKind
.Enum; }
351
get { return _kind ==
TypeKind
.Root; }
372
_nullableTypeDesc = new TypeDesc("NullableOf" + _name, "System.Nullable`1[" + _fullName + "]", null,
TypeKind
.Struct, this, _flags | TypeFlags.OptionalValue, _formatterName);
408
get { return _kind ==
TypeKind
.Array ? "Length" : "Count"; }
425
_arrayTypeDesc = new TypeDesc(null, _name + "[]", _fullName + "[]",
TypeKind
.Array, null, TypeFlags.Reference | (_flags & TypeFlags.UseReflection), this);
786
TypeKind
kind;
814
kind =
TypeKind
.Root;
819
kind =
TypeKind
.Enum;
828
kind =
TypeKind
.Void;
833
kind =
TypeKind
.Serializable;
839
kind =
TypeKind
.Array;
853
kind =
TypeKind
.Collection;
859
kind =
TypeKind
.Primitive;
863
kind =
TypeKind
.Primitive;
872
kind =
TypeKind
.Enum;
876
kind =
TypeKind
.Struct;
892
kind =
TypeKind
.Attribute;
897
kind =
TypeKind
.Node;
909
kind =
TypeKind
.Class;
917
kind =
TypeKind
.Void;
933
kind =
TypeKind
.Void;
942
if (kind ==
TypeKind
.Class && !info.IsAbstract)
947
if (kind ==
TypeKind
.Struct || kind ==
TypeKind
.Class)
952
kind =
TypeKind
.Enumerable;
963
if (directReference && (typeDesc.IsClass || kind ==
TypeKind
.Serializable))
1140
if (typeDesc.Kind ==
TypeKind
.Collection || typeDesc.Kind ==
TypeKind
.Enumerable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (19)
418
case
TypeKind
.Enum:
420
case
TypeKind
.Primitive:
423
case
TypeKind
.Array:
424
case
TypeKind
.Collection:
425
case
TypeKind
.Enumerable:
432
case
TypeKind
.Root:
433
case
TypeKind
.Class:
434
case
TypeKind
.Struct:
450
if (model.TypeDesc.Kind ==
TypeKind
.Serializable)
511
if (typeDesc.Kind ==
TypeKind
.Serializable)
728
if (model.TypeDesc.Kind ==
TypeKind
.Root) return GetRootMapping();
1566
if (accessor.TypeDesc.ArrayElementTypeDesc.Kind ==
TypeKind
.Serializable)
1816
if (element.Mapping.TypeDesc.Kind ==
TypeKind
.Node)
1860
if (accessor.TypeDesc.Kind ==
TypeKind
.Serializable)
2136
if (!(fieldTypeDesc.Kind ==
TypeKind
.Primitive || fieldTypeDesc.Kind ==
TypeKind
.Enum))
2143
if (fieldTypeDesc.Kind ==
TypeKind
.Enum)
2228
bool isAny = mapping.TypeDesc.Kind ==
TypeKind
.Node;
2253
if (typeDesc.Kind ==
TypeKind
.Node)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (2)
455
case
TypeKind
.Node:
473
case
TypeKind
.Serializable:
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
663
structMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Struct, baseTypeDesc, flags);
717
structMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Struct, baseTypeDesc, flags);
1846
enumMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Enum, null, 0);
1902
enumMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Enum, null, 0);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (2)
2728
if (special.TypeDesc.Kind ==
TypeKind
.Attribute || special.TypeDesc.CanBeAttributeValue)
3159
case
TypeKind
.Node:
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1442
if (special.TypeDesc.Kind ==
TypeKind
.Attribute || special.TypeDesc.CanBeAttributeValue)
1982
case
TypeKind
.Node: