25 writes to TypeDesc
dotnet-svcutil-lib (25)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
713
accessor.
TypeDesc
= _typeScope.GetTypeDesc(accessorType);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (2)
566
member.
TypeDesc
= ((TypeMapping)accessor.Mapping).TypeDesc;
569
member.
TypeDesc
= member.TypeDesc.CreateArrayTypeDesc();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
1529
accessor.
TypeDesc
= _typeScope.GetTypeDesc(accessorType);
1544
accessor.
TypeDesc
= _typeScope.GetArrayTypeDesc(accessorType);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (20)
262
member.
TypeDesc
= accessor.Mapping.TypeDesc;
915
member.
TypeDesc
= Scope.GetTypeDesc(typeof(object));
926
member.
TypeDesc
= TypeDesc.FindCommonBaseTypeDesc(typeDescs);
927
if (member.TypeDesc == null) member.
TypeDesc
= Scope.GetTypeDesc(typeof(object));
931
member.
TypeDesc
= member.TypeDesc.CreateArrayTypeDesc();
959
choiceIdentifier.
TypeDesc
= member.ChoiceIdentifier.Mapping.TypeDesc.CreateArrayTypeDesc();
963
choiceIdentifier.
TypeDesc
= member.ChoiceIdentifier.Mapping.TypeDesc;
1245
member.
TypeDesc
= accessor.Mapping.TypeDesc.CreateArrayTypeDesc();
1254
member.
TypeDesc
= accessor.Mapping.TypeDesc.CreateArrayTypeDesc();
1259
member.
TypeDesc
= accessor.Mapping.TypeDesc;
1276
member.
TypeDesc
= ((TypeMapping)accessors[0].Mapping).TypeDesc;
1285
member.
TypeDesc
= textMapping.TypeDesc;
1295
member.
TypeDesc
= member.TypeDesc.CreateArrayTypeDesc();
1541
member.
TypeDesc
= accessor.Mapping.TypeDesc;
1545
member.
TypeDesc
= accessor.Mapping.TypeDesc;
1559
member.
TypeDesc
= accessor.Mapping.TypeDesc.CreateArrayTypeDesc();
1584
member.
TypeDesc
= accessor.IsList ? accessor.Mapping.TypeDesc.CreateArrayTypeDesc() : accessor.Mapping.TypeDesc;
1608
member.
TypeDesc
= ((TypeMapping)accessor.Mapping).TypeDesc;
1609
member.
TypeDesc
= member.TypeDesc.CreateArrayTypeDesc();
1670
member.
TypeDesc
= xmlnsTypeDesc;
92 references to TypeDesc
dotnet-svcutil-lib (92)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (6)
609
if (_members[i].
TypeDesc
!= member.
TypeDesc
)
610
throw new InvalidOperationException(string.Format(ResXml.XmlHiddenMember, parent, member.Name, member.
TypeDesc
.FullName, this.TypeName, _members[i].Name, _members[i].
TypeDesc
.FullName));
1050
return GetNullableType(
TypeDesc
);
1052
return
TypeDesc
.FullName;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (9)
427
if (!member.
TypeDesc
.IsPrimitive && !member.
TypeDesc
.IsEnum && !member.
TypeDesc
.IsOptionalValue)
431
if (member.
TypeDesc
.IsValueType)
432
throw new NotSupportedException(string.Format(ResXml.XmlRpcNestedValueType, member.
TypeDesc
.FullName));
714
if (accessor.
TypeDesc
.IsVoid)
722
if (!accessor.
TypeDesc
.IsPrimitive && !accessor.
TypeDesc
.IsEnum)
723
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSoapAttribute, accessorName, accessor.
TypeDesc
.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
376
bool valueTypeOptional = member.CheckSpecified != SpecifiedAccessor.None || member.CheckShouldPersist || !member.
TypeDesc
.IsValueType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (3)
569
member.TypeDesc = member.
TypeDesc
.CreateArrayTypeDesc();
571
if (element.MinOccurs == 0 && member.
TypeDesc
.IsValueType && !member.
TypeDesc
.HasIsEmpty)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1124
if (propertyInfo != null && !CanWriteProperty(propertyInfo, memberMapping.
TypeDesc
))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (14)
719
bool sameType = mapping.TypeDesc == member.
TypeDesc
||
720
(member.
TypeDesc
.IsArrayLike && mapping.TypeDesc == member.
TypeDesc
.ArrayElementTypeDesc);
731
AddDefaultValueAttribute(field, metadata, attribute.Default, mapping, comments, member.
TypeDesc
, attribute, ctor);
739
bool sameType = mapping.TypeDesc == member.
TypeDesc
||
740
(member.
TypeDesc
.IsArrayLike && mapping.TypeDesc == member.
TypeDesc
.ArrayElementTypeDesc);
757
bool sameType = mapping.TypeDesc == member.
TypeDesc
;
767
ExportArrayElements(metadata, array, element.Namespace, member.
TypeDesc
.ArrayElementTypeDesc, 0);
771
bool sameType = mapping.TypeDesc == member.
TypeDesc
||
772
(member.
TypeDesc
.IsArrayLike && mapping.TypeDesc == member.
TypeDesc
.ArrayElementTypeDesc);
773
if (member.
TypeDesc
.IsArrayLike)
777
AddDefaultValueAttribute(field, metadata, element.Default, mapping, comments, member.
TypeDesc
, element, ctor);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMemberMapping.cs (1)
99
get { return _mapping.
TypeDesc
.FullName; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlMembersMapping.cs (2)
28
if (mapping.Members[i].
TypeDesc
.Type != null)
30
key.Append(GenerateKey(mapping.Members[i].
TypeDesc
.Type, null, null));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (23)
1555
if (accessor.
TypeDesc
.IsArrayLike)
1564
if (a.XmlAttribute != null && !accessor.
TypeDesc
.ArrayElementTypeDesc.IsPrimitive && !accessor.
TypeDesc
.ArrayElementTypeDesc.IsEnum)
1566
if (accessor.
TypeDesc
.ArrayElementTypeDesc.Kind == TypeKind.Serializable)
1568
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.
TypeDesc
.ArrayElementTypeDesc.FullName, typeof(IXmlSerializable).Name));
1572
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.
TypeDesc
.ArrayElementTypeDesc.FullName));
1576
bool isList = a.XmlAttribute != null && (accessor.
TypeDesc
.ArrayElementTypeDesc.IsPrimitive || accessor.
TypeDesc
.ArrayElementTypeDesc.IsEnum);
1625
a.XmlElements.Add(CreateElementAttribute(accessor.
TypeDesc
));
1726
a.XmlArray = CreateArrayAttribute(accessor.
TypeDesc
);
1739
CheckNullable(arrayElement.IsNullable, accessor.
TypeDesc
, arrayElement.Mapping);
1752
else if (!accessor.
TypeDesc
.IsVoid)
1758
if (accessor.
TypeDesc
.IsPrimitive || accessor.
TypeDesc
.IsEnum)
1760
if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessor.
TypeDesc
.FullName));
1800
a.XmlElements.Add(CreateElementAttribute(accessor.
TypeDesc
));
1808
if (_typeScope.GetTypeDesc(xmlElement.Type) != accessor.
TypeDesc
)
1827
CheckNullable(element.IsNullable, accessor.
TypeDesc
, element.Mapping);
1860
if (accessor.
TypeDesc
.Kind == TypeKind.Serializable)
1862
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.
TypeDesc
.FullName, typeof(IXmlSerializable).Name));
1866
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.
TypeDesc
));
1870
a.XmlElements.Add(CreateElementAttribute(accessor.
TypeDesc
));
1966
if (accessor.
TypeDesc
.IsArrayLike && accessor.Elements.Length > 0 && !(accessor.Elements[0].Mapping is ArrayMapping))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (7)
109
if (member.
TypeDesc
.IsArrayLike && !(member.Elements[0].Mapping is ArrayMapping))
199
bool isUnbounded = member.Mapping.
TypeDesc
.IsArrayLike;
200
bool isMixed = isUnbounded && member.Mapping.
TypeDesc
.ArrayElementTypeDesc != null ? member.Mapping.
TypeDesc
.ArrayElementTypeDesc.IsMixed : member.Mapping.
TypeDesc
.IsMixed;
202
if (isMixed && member.Mapping.
TypeDesc
.IsMixed)
1100
bool repeats = member.
TypeDesc
.IsArrayLike &&
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (13)
695
if (baseMember != null && baseMember.
TypeDesc
!= structMapping.Members[i].
TypeDesc
)
696
throw new InvalidOperationException(string.Format(ResXml.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.
TypeDesc
.FullName, structMapping.Members[i].
TypeDesc
.FullName, declaringMapping.TypeDesc.FullName));
927
if (member.
TypeDesc
== null) member.TypeDesc = Scope.GetTypeDesc(typeof(object));
931
member.TypeDesc = member.
TypeDesc
.CreateArrayTypeDesc();
1295
member.TypeDesc = member.
TypeDesc
.CreateArrayTypeDesc();
1397
arrayMapping.TypeDesc = choiceMember.
TypeDesc
;
1562
if (element.MinOccurs == 0 && member.
TypeDesc
.IsValueType && !element.HasDefault && !member.
TypeDesc
.HasIsEmpty)
1586
if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.
TypeDesc
.IsValueType && !attribute.HasDefault && !member.
TypeDesc
.HasIsEmpty)
1609
member.TypeDesc = member.
TypeDesc
.CreateArrayTypeDesc();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (6)
1954
WriteMember(source, member.Attribute, member.
TypeDesc
, "p");
2019
enumSource = "((" + mapping.Members[j].
TypeDesc
.CSharpName + ")p[" + j.ToString() + "]" + ")";
2041
WriteMember(source, enumSource, member.ElementsSortedByDerivation, member.Text, member.ChoiceIdentifier, member.
TypeDesc
, writeAccessors || hasWrapperElement);
2423
xmlnsSource = "((" + member.
TypeDesc
.CSharpName + ")" + xmlnsSource + ")";
2473
WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), m.Attribute, m.
TypeDesc
, "o");
2521
WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation, m.Text, m.ChoiceIdentifier, m.
TypeDesc
, true);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
459
WriteMember(source, member.Attribute, member.
TypeDesc
, "p");
523
enumSource = "((" + mapping.Members[j].
TypeDesc
.CSharpName + ")p[" + j.ToString() + "]" + ")";
536
WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation, member.Text, member.ChoiceIdentifier, member.
TypeDesc
, writeAccessors || hasWrapperElement);
1141
WriteMember(RaCodeGen.GetSourceForMember("o", m, mapping.TypeDesc, ilg), m.Attribute, m.
TypeDesc
, "o");
1182
WriteMember(RaCodeGen.GetSourceForMember("o", m, m.MemberInfo, mapping.TypeDesc, ilg), choiceSource, m.ElementsSortedByDerivation, m.Text, m.ChoiceIdentifier, m.
TypeDesc
, true);
2475
return new SourceInfo(GetStringForMember(obj, member.Name, typeDesc), obj, memberInfo, member.
TypeDesc
.Type, ilg);