116 references to TypeKind
System.Xml (116)
System\Xml\Serialization\CodeExporter.cs (2)
199
TypeKind
kind = arrayMapping.Elements[0].Mapping.TypeDesc.Kind;
200
if (kind ==
TypeKind
.Node)
System\Xml\Serialization\Models.cs (14)
43
case
TypeKind
.Enum:
46
case
TypeKind
.Primitive:
49
case
TypeKind
.Array:
50
case
TypeKind
.Collection:
51
case
TypeKind
.Enumerable:
54
case
TypeKind
.Root:
55
case
TypeKind
.Class:
56
case
TypeKind
.Struct:
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 (12)
203
case
TypeKind
.Enum:
205
case
TypeKind
.Primitive:
207
case
TypeKind
.Array:
208
case
TypeKind
.Collection:
209
case
TypeKind
.Enumerable:
211
case
TypeKind
.Root:
212
case
TypeKind
.Class:
213
case
TypeKind
.Struct:
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\SoapSchemaImporter.cs (2)
298
structMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Struct, baseTypeDesc, flags);
559
enumMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Enum, null, 0);
System\Xml\Serialization\Types.cs (49)
80
TypeKind
kind;
92
internal TypeDesc(string name, string fullName, XmlSchemaType dataType,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags, string formatterName) {
98
this.isXsdType = kind ==
TypeKind
.Primitive;
101
else if (kind ==
TypeKind
.Enum)
103
else if (this.kind ==
TypeKind
.Root)
111
internal TypeDesc(string name, string fullName, XmlSchemaType dataType,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags)
114
internal TypeDesc(string name, string fullName,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags)
118
: this(type.Name, type.FullName, dataType,
TypeKind
.Primitive, (TypeDesc)null, flags, formatterName) {
122
internal TypeDesc(Type type, string name, string fullName,
TypeKind
kind, TypeDesc baseTypeDesc, TypeFlags flags, TypeDesc arrayElementTypeDesc)
178
internal
TypeKind
Kind {
264
get { return kind ==
TypeKind
.Void; }
268
get { return kind ==
TypeKind
.Class; }
272
get { return kind ==
TypeKind
.Struct || kind ==
TypeKind
.Class; }
276
get { return kind ==
TypeKind
.Array || kind ==
TypeKind
.Collection || kind ==
TypeKind
.Enumerable; }
280
get { return kind ==
TypeKind
.Collection; }
284
get { return kind ==
TypeKind
.Enumerable; }
288
get { return kind ==
TypeKind
.Array; }
292
get { return kind ==
TypeKind
.Primitive; }
296
get { return kind ==
TypeKind
.Enum; }
304
get { return kind ==
TypeKind
.Root; }
321
nullableTypeDesc = new TypeDesc("NullableOf" + this.name, "System.Nullable`1[" + this.fullName + "]", null,
TypeKind
.Struct, this, this.flags | TypeFlags.OptionalValue, this.formatterName);
350
get { return kind ==
TypeKind
.Array ? "Length" : "Count"; }
364
arrayTypeDesc = new TypeDesc(null, name + "[]", fullName + "[]",
TypeKind
.Array, null, TypeFlags.Reference | (flags & TypeFlags.UseReflection), this);
690
TypeKind
kind;
712
kind =
TypeKind
.Root;
716
kind =
TypeKind
.Enum;
723
kind =
TypeKind
.Void;
727
kind =
TypeKind
.Serializable;
732
kind =
TypeKind
.Array;
743
kind =
TypeKind
.Collection;
748
kind =
TypeKind
.Primitive;
751
kind =
TypeKind
.Primitive;
758
kind =
TypeKind
.Enum;
761
kind =
TypeKind
.Struct;
773
kind =
TypeKind
.Attribute;
777
kind =
TypeKind
.Node;
788
kind =
TypeKind
.Class;
795
kind =
TypeKind
.Void;
807
kind =
TypeKind
.Void;
815
if (kind ==
TypeKind
.Class && !type.IsAbstract) {
819
if (kind ==
TypeKind
.Struct || kind ==
TypeKind
.Class) {
822
kind =
TypeKind
.Enumerable;
833
if (directReference && (typeDesc.IsClass || kind ==
TypeKind
.Serializable))
980
if (typeDesc.Kind ==
TypeKind
.Collection || typeDesc.Kind ==
TypeKind
.Enumerable) {
System\Xml\Serialization\XmlReflectionImporter.cs (19)
371
case
TypeKind
.Enum:
373
case
TypeKind
.Primitive:
376
case
TypeKind
.Array:
377
case
TypeKind
.Collection:
378
case
TypeKind
.Enumerable:
385
case
TypeKind
.Root:
386
case
TypeKind
.Class:
387
case
TypeKind
.Struct:
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 (2)
395
case
TypeKind
.Node: {
411
case
TypeKind
.Serializable: {
System\Xml\Serialization\XmlSchemaImporter.cs (4)
581
structMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Struct, baseTypeDesc, flags);
629
structMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Struct, baseTypeDesc, flags);
1607
enumMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Enum, null, 0);
1656
enumMapping.TypeDesc = new TypeDesc(typeName, typeName,
TypeKind
.Enum, null, 0);
System\Xml\Serialization\XmlSerializationReader.cs (4)
3544
if (special.TypeDesc.Kind ==
TypeKind
.Attribute) {
3795
case
TypeKind
.Node:
4412
case
TypeKind
.Node:
4421
case
TypeKind
.Serializable:
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
2098
if (special.TypeDesc.Kind ==
TypeKind
.Attribute) {
2374
case
TypeKind
.Node:
3205
case
TypeKind
.Node:
3223
case
TypeKind
.Serializable:
System\Xml\Serialization\XmlSerializationWriter.cs (2)
2356
if (special.TypeDesc.Kind ==
TypeKind
.Attribute || special.TypeDesc.CanBeAttributeValue) {
2736
case
TypeKind
.Node:
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1326
if (special.TypeDesc.Kind ==
TypeKind
.Attribute || special.TypeDesc.CanBeAttributeValue) {
1819
case
TypeKind
.Node: