12 instantiations of TypeDesc
dotnet-svcutil-lib (12)
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 (6)
372
_nullableTypeDesc = new
TypeDesc
("NullableOf" + _name, "System.Nullable`1[" + _fullName + "]", null, TypeKind.Struct, this, _flags | TypeFlags.OptionalValue, _formatterName);
425
_arrayTypeDesc = new
TypeDesc
(null, _name + "[]", _fullName + "[]", TypeKind.Array, null, TypeFlags.Reference | (_flags & TypeFlags.UseReflection), this);
431
TypeDesc newTypeDesc = new
TypeDesc
(extension.Name, extension.Name, null, _kind, _baseTypeDesc, _flags, null);
657
TypeDesc typeDesc = new
TypeDesc
(type, true, dataType, formatterName, flags);
675
TypeDesc typeDesc = new
TypeDesc
(type, false, dataType, formatterName, flags);
960
typeDesc = new
TypeDesc
(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
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);
199 references to TypeDesc
dotnet-svcutil-lib (199)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (5)
280
private
TypeDesc
_typeDesc;
311
internal
TypeDesc
TypeDesc
702
private
TypeDesc
_typeDesc;
742
internal
TypeDesc
TypeDesc
1029
private string GetNullableType(
TypeDesc
td)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (18)
42
TypeDesc
typeDesc = _typeScope.GetTypeDesc(type, null, directReference);
80
TypeDesc
typeDesc = _typeScope.GetArrayTypeDesc(type);
91
private
TypeDesc
_typeDesc;
95
protected TypeModel(Type type,
TypeDesc
typeDesc, ModelScope scope)
112
internal
TypeDesc
TypeDesc
120
internal ArrayModel(Type type,
TypeDesc
typeDesc, ModelScope scope) : base(type, typeDesc, scope) { }
130
internal PrimitiveModel(Type type,
TypeDesc
typeDesc, ModelScope scope) : base(type, typeDesc, scope) { }
135
internal SpecialModel(Type type,
TypeDesc
typeDesc, ModelScope scope) : base(type, typeDesc, scope) { }
140
internal StructModel(Type type,
TypeDesc
typeDesc, ModelScope scope) : base(type, typeDesc, scope) { }
185
private void CheckSupportedMember(
TypeDesc
typeDesc, MemberInfo member, Type type)
206
TypeDesc
typeDesc = ModelScope.TypeScope.GetTypeDesc(fieldInfo.FieldType, fieldInfo, true, false);
219
TypeDesc
typeDesc = ModelScope.TypeScope.GetTypeDesc(propertyInfo.PropertyType, propertyInfo, true, false);
260
private
TypeDesc
_fieldTypeDesc;
262
internal FieldModel(string name, Type fieldType,
TypeDesc
fieldTypeDesc, bool checkSpecified, bool checkShouldPersist) :
266
internal FieldModel(string name, Type fieldType,
TypeDesc
fieldTypeDesc, bool checkSpecified, bool checkShouldPersist, bool readOnly)
276
internal FieldModel(MemberInfo memberInfo, Type fieldType,
TypeDesc
fieldTypeDesc)
332
internal
TypeDesc
FieldTypeDesc
402
internal EnumModel(Type type,
TypeDesc
typeDesc, ModelScope scope) : base(type, typeDesc, scope) { }
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (3)
153
TypeDesc
baseTypeDesc;
159
TypeDesc
typeDescToChange = structMapping.TypeDesc;
182
TypeDesc
typeDesc = Scope.GetTypeDesc(typeof(object));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
206
private void AddElementMetadata(CodeAttributeDeclarationCollection metadata, string elementName,
TypeDesc
typeDesc, bool isNullable)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (8)
204
TypeDesc
td = _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace);
235
TypeDesc
baseTypeDesc = model.TypeDesc.BaseTypeDesc;
240
TypeDesc
valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace);
258
TypeDesc
typeDesc = _typeScope.GetTypeDesc(typeof(object));
279
private TypeMapping GetTypeMapping(string typeName, string ns,
TypeDesc
typeDesc)
290
TypeDesc
typeDesc = baseMapping.TypeDesc.GetNullableTypeDesc(type);
764
private object GetDefaultValue(
TypeDesc
fieldTypeDesc, SoapAttributes a)
789
TypeDesc
typeDesc = _typeScope.GetTypeDesc(type);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (8)
304
TypeDesc
baseTypeDesc = null;
502
TypeDesc
td = Scope.GetTypeDesc(typeName.Name, typeName.Namespace);
624
TypeDesc
sourceTypeDesc = Scope.GetTypeDesc(sourceDataType);
670
TypeDesc
sourceTypeDesc = GetDataTypeSource(dataType);
680
TypeDesc
typeDesc = null;
694
private
TypeDesc
GetDataTypeSource(XmlSchemaSimpleType dataType)
698
TypeDesc
typeDesc = Scope.GetTypeDesc(dataType);
710
TypeDesc
typeDesc = Scope.GetTypeDesc(name.Name, name.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
49
public SourceInfo CastTo(
TypeDesc
td)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (45)
77
private
TypeDesc
_arrayElementTypeDesc;
78
private
TypeDesc
_arrayTypeDesc;
79
private
TypeDesc
_nullableTypeDesc;
83
private
TypeDesc
_baseTypeDesc;
92
internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind,
TypeDesc
baseTypeDesc, TypeFlags flags, string formatterName)
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)
365
internal
TypeDesc
GetNullableTypeDesc(Type type)
411
internal
TypeDesc
ArrayElementTypeDesc
422
internal
TypeDesc
CreateArrayTypeDesc()
429
internal
TypeDesc
CreateMappedTypeDesc(MappedTypeDesc extension)
431
TypeDesc
newTypeDesc = new TypeDesc(extension.Name, extension.Name, null, _kind, _baseTypeDesc, _flags, null);
439
internal
TypeDesc
BaseTypeDesc
449
internal bool IsDerivedFrom(
TypeDesc
baseTypeDesc)
451
TypeDesc
typeDesc = this;
460
internal static
TypeDesc
FindCommonBaseTypeDesc(
TypeDesc
[] typeDescs)
463
TypeDesc
leastDerivedTypeDesc = null;
657
TypeDesc
typeDesc = new TypeDesc(type, true, dataType, formatterName, flags);
675
TypeDesc
typeDesc = new TypeDesc(type, false, dataType, formatterName, flags);
687
internal
TypeDesc
GetTypeDesc(string name, string ns)
692
internal
TypeDesc
GetTypeDesc(string name, string ns, TypeFlags flags)
694
TypeDesc
typeDesc = (
TypeDesc
)s_primitiveNames[name, ns];
705
internal
TypeDesc
GetTypeDesc(XmlSchemaSimpleType dataType)
707
return (
TypeDesc
)s_primitiveDataTypes[dataType];
710
internal
TypeDesc
GetTypeDesc(Type type)
715
internal
TypeDesc
GetTypeDesc(Type type, MemberInfo source)
720
internal
TypeDesc
GetTypeDesc(Type type, MemberInfo source, bool directReference)
725
internal
TypeDesc
GetTypeDesc(Type type, MemberInfo source, bool directReference, bool throwOnError)
731
TypeDesc
typeDesc = (
TypeDesc
)s_primitiveTypes[type];
734
typeDesc = (
TypeDesc
)_typeDescs[type];
747
internal
TypeDesc
GetArrayTypeDesc(Type type)
749
TypeDesc
typeDesc = (
TypeDesc
)_arrayTypeDescs[type];
761
internal TypeMapping GetTypeMappingFromTypeDesc(
TypeDesc
typeDesc)
771
internal Type GetTypeFromTypeDesc(
TypeDesc
typeDesc)
783
private
TypeDesc
ImportTypeDesc(Type type, MemberInfo memberInfo, bool directReference)
785
TypeDesc
typeDesc = null;
975
TypeDesc
td = GetTypeDesc(arrayElementType, memberInfo, true, false);
1134
private static bool CanWriteProperty(PropertyInfo propertyInfo,
TypeDesc
typeDesc)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (11)
418
private void AddDefaultValueAttribute(CodeMemberField field, CodeAttributeDeclarationCollection metadata, object defaultValue, TypeMapping mapping, CodeCommentStatementCollection comments,
TypeDesc
memberTypeDesc, Accessor accessor, CodeConstructor ctor)
684
private void ExportArrayElements(CodeAttributeDeclarationCollection metadata, ArrayMapping array, string ns,
TypeDesc
elementTypeDesc, int nestingLevel)
857
private void ExportText(CodeAttributeDeclarationCollection metadata,
TypeDesc
typeDesc, string dataType)
871
private void ExportAttribute(CodeAttributeDeclarationCollection metadata, string name, string ns,
TypeDesc
typeDesc,
TypeDesc
dataTypeDesc, XmlSchemaForm form)
876
private void ExportArrayItem(CodeAttributeDeclarationCollection metadata, string name, string ns,
TypeDesc
typeDesc,
TypeDesc
dataTypeDesc, bool isNullable, XmlSchemaForm form, int nestingLevel)
881
private void ExportElement(CodeAttributeDeclarationCollection metadata, string name, string ns,
TypeDesc
typeDesc,
TypeDesc
dataTypeDesc, bool isNullable, XmlSchemaForm form, int sequenceId)
891
private void ExportMetadata(CodeAttributeDeclarationCollection metadata, Type attributeType, string name, string ns,
TypeDesc
typeDesc,
TypeDesc
dataTypeDesc, object isNullable, XmlSchemaForm form, int nestingLevel, int sequenceId)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (25)
394
TypeDesc
modelTypeDesc = TypeScope.IsOptionalValue(model.Type) ? model.TypeDesc.BaseTypeDesc : model.TypeDesc;
399
TypeDesc
td = _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace);
438
TypeDesc
valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType, XmlSchema.Namespace);
501
private SpecialMapping ImportSpecialMapping(Type type,
TypeDesc
typeDesc, string ns, ImportContext context, RecursionLimiter limiter)
631
private static Exception UnsupportedException(
TypeDesc
typeDesc, ImportContext context)
638
TypeDesc
typeDesc = _typeScope.GetTypeDesc(typeof(object));
650
TypeDesc
typeDesc = baseMapping.TypeDesc.GetNullableTypeDesc(type);
712
private TypeMapping GetTypeMapping(string typeName, string ns,
TypeDesc
typeDesc, NameTable typeLib, Type type)
956
TypeDesc
typeDesc = _typeScope.GetTypeDesc(type);
1137
private void CheckContext(
TypeDesc
typeDesc, ImportContext context)
1323
TypeDesc
typeDesc = _typeScope.GetTypeDesc(xmlReflectionMember.MemberType);
1501
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
1585
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
1616
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
1631
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
1691
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
1724
TypeDesc
arrayElementTypeDesc = _typeScope.GetTypeDesc(arrayElementType);
1875
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
1935
TypeDesc
targetTypeDesc = _typeScope.GetTypeDesc(targetType);
2133
private object GetDefaultValue(
TypeDesc
fieldTypeDesc, Type t, XmlAttributes a)
2154
private static XmlArrayItemAttribute CreateArrayItemAttribute(
TypeDesc
typeDesc, int nestingLevel)
2161
private static XmlArrayAttribute CreateArrayAttribute(
TypeDesc
typeDesc)
2167
private static XmlElementAttribute CreateElementAttribute(
TypeDesc
typeDesc)
2218
private static void CheckNullable(bool isNullable,
TypeDesc
typeDesc, TypeMapping mapping)
2250
TypeDesc
typeDesc = new TypeScope().GetTypeDesc(type);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (12)
602
TypeDesc
baseTypeDesc = null;
716
TypeDesc
baseTypeDesc = Scope.GetTypeDesc(baseType);
918
TypeDesc
[] typeDescs = new
TypeDesc
[uniqueTypeDescs.Count];
926
member.TypeDesc =
TypeDesc
.FindCommonBaseTypeDesc(typeDescs);
1653
TypeDesc
xmlnsTypeDesc = Scope.GetTypeDesc(typeof(XmlSerializerNamespaces));
1839
TypeDesc
sourceTypeDesc = Scope.GetTypeDesc((XmlSchemaSimpleType)sourceType);
1929
TypeDesc
sourceTypeDesc = GetDataTypeSource(dataType, flags);
1940
TypeDesc
typeDesc = null;
1993
private
TypeDesc
GetDataTypeSource(XmlSchemaSimpleType dataType, TypeFlags flags)
1995
TypeDesc
typeDesc = null;
2016
TypeDesc
typeDesc = Scope.GetTypeDesc(name.Name, name.Namespace, flags);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationGeneratedCode.cs (4)
42
private
TypeDesc
_stringTypeDesc = null;
43
private
TypeDesc
_qnameTypeDesc = null;
67
internal
TypeDesc
StringTypeDesc { get { return _stringTypeDesc; } }
68
internal
TypeDesc
QnameTypeDesc { get { return _qnameTypeDesc; } }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (4)
26
private
TypeDesc
_stringTypeDesc = null;
27
private
TypeDesc
_qnameTypeDesc = null;
53
internal
TypeDesc
StringTypeDesc { get { return _stringTypeDesc; } }
54
internal
TypeDesc
QnameTypeDesc { get { return _qnameTypeDesc; } }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
2194
private
TypeDesc
_td;
2196
internal CreateCollectionInfo(string name,
TypeDesc
td)
2206
internal
TypeDesc
TypeDesc
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (26)
817
TypeDesc
typeDesc = new TypeScope().GetTypeDesc(type);
1689
private void WritePrimitiveValue(
TypeDesc
typeDesc, string source, bool isElement)
1719
TypeDesc
typeDesc = mapping.TypeDesc;
2543
private bool CanOptimizeWriteListSequence(
TypeDesc
listElementTypeDesc)
2552
private void WriteMember(string source, AttributeAccessor attribute,
TypeDesc
memberTypeDesc, string parent)
2592
TypeDesc
arrayElementTypeDesc = memberTypeDesc.ArrayElementTypeDesc;
2741
TypeDesc
typeDesc = attribute.Mapping.TypeDesc;
2747
private void WriteMember(string source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice,
TypeDesc
memberTypeDesc, bool writeAccessors)
2757
private void WriteArray(string source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice,
TypeDesc
arrayTypeDesc)
2797
private void WriteArrayItems(ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice,
TypeDesc
arrayTypeDesc, string arrayName, string choiceName)
2799
TypeDesc
arrayElementTypeDesc = arrayTypeDesc.ArrayElementTypeDesc;
2908
TypeDesc
td = elements[0].IsUnbounded ? elements[0].Mapping.TypeDesc.CreateArrayTypeDesc() : elements[0].Mapping.TypeDesc;
2975
TypeDesc
td = element.IsUnbounded ? element.Mapping.TypeDesc.CreateArrayTypeDesc() : element.Mapping.TypeDesc;
3223
TypeDesc
td = mapping.TypeDesc.CreateArrayTypeDesc();
3403
TypeDesc
td = mapping.TypeDesc;
3488
private void WriteChoiceTypeCheck(string source, string fullTypeName, bool useReflection, ChoiceIdentifierAccessor choice, string enumName,
TypeDesc
typeDesc)
3637
private void WriteArrayLocalDecl(string typeName, string variableName, string initValue,
TypeDesc
arrayTypeDesc)
3836
TypeDesc
typeDesc = scope.GetTypeDesc(type);
3842
private string WriteTypeInfo(TypeScope scope,
TypeDesc
typeDesc, Type type)
3853
TypeDesc
elementTypeDesc = typeDesc.ArrayElementTypeDesc;
3893
TypeDesc
elementTypeDesc = typeDesc.ArrayElementTypeDesc;
3951
private void WriteCollectionInfo(string typeVariable,
TypeDesc
typeDesc, Type type)
4150
internal string GetStringForMember(string obj, string memberName,
TypeDesc
typeDesc)
4155
TypeDesc
saveTypeDesc = typeDesc;
4196
internal string GetStringForArrayMember(string arrayName, string subscript,
TypeDesc
arrayTypeDesc)
4309
internal void WriteArrayLocalDecl(string typeName, string variableName, string initValue,
TypeDesc
arrayTypeDesc)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (21)
148
private void WritePrimitiveValue(
TypeDesc
typeDesc, SourceInfo source, out Type returnType)
196
TypeDesc
typeDesc = mapping.TypeDesc;
1199
private bool CanOptimizeWriteListSequence(
TypeDesc
listElementTypeDesc)
1208
private void WriteMember(SourceInfo source, AttributeAccessor attribute,
TypeDesc
memberTypeDesc, string parent)
1259
TypeDesc
arrayElementTypeDesc = memberTypeDesc.ArrayElementTypeDesc;
1463
TypeDesc
typeDesc = attribute.Mapping.TypeDesc;
1485
private void WriteMember(SourceInfo source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice,
TypeDesc
memberTypeDesc, bool writeAccessors)
1496
private void WriteArray(SourceInfo source, string choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice,
TypeDesc
arrayTypeDesc)
1556
private void WriteArrayItems(ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice,
TypeDesc
arrayTypeDesc, string arrayName, string choiceName)
1558
TypeDesc
arrayElementTypeDesc = arrayTypeDesc.ArrayElementTypeDesc;
1653
TypeDesc
td = elements[0].IsUnbounded ? elements[0].Mapping.TypeDesc.CreateArrayTypeDesc() : elements[0].Mapping.TypeDesc;
1720
TypeDesc
td = element.IsUnbounded ? element.Mapping.TypeDesc.CreateArrayTypeDesc() : element.Mapping.TypeDesc;
2138
TypeDesc
td = mapping.TypeDesc;
2281
private void WriteChoiceTypeCheck(SourceInfo source, string fullTypeName, ChoiceIdentifierAccessor choice, string enumName,
TypeDesc
typeDesc)
2356
private void WriteArrayLocalDecl(string typeName, string variableName, SourceInfo initValue,
TypeDesc
arrayTypeDesc)
2448
TypeDesc
typeDesc = scope.GetTypeDesc(type);
2465
internal string GetStringForMember(string obj, string memberName,
TypeDesc
typeDesc)
2469
internal SourceInfo GetSourceForMember(string obj, MemberMapping member,
TypeDesc
typeDesc, CodeGenerator ilg)
2473
internal SourceInfo GetSourceForMember(string obj, MemberMapping member, MemberInfo memberInfo,
TypeDesc
typeDesc, CodeGenerator ilg)
2496
internal string GetStringForArrayMember(string arrayName, string subscript,
TypeDesc
arrayTypeDesc)
2644
internal void WriteArrayLocalDecl(string typeName, string variableName, SourceInfo initValue,
TypeDesc
arrayTypeDesc)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (4)
511
TypeDesc
typeDesc = (
TypeDesc
)TypeScope.PrimtiveTypes[_primitiveType];
762
TypeDesc
typeDesc = (
TypeDesc
)TypeScope.PrimtiveTypes[type];