143 references to Type
System.Xml (143)
System\Xml\Serialization\SoapReflectionImporter.cs (3)
216
SoapAttributes baseAttributes = GetAttributes(baseTypeDesc.
Type
);
224
baseMapping = ImportTypeMapping(modelScope.GetTypeModel(baseTypeDesc.
Type
), dataType, limiter);
225
return CreateNullableMapping(baseMapping, model.TypeDesc.
Type
);
System\Xml\Serialization\SourceInfo.cs (1)
51
return new SourceInfo("((" + td.CSharpName + ")" + Source + ")", Arg, MemberInfo, td.
Type
, ILG);
System\Xml\Serialization\Types.cs (3)
679
if (typeDesc.
Type
!= null)
680
return typeDesc.
Type
;
1016
if (ShouldBeReplaced(pair.Value, structMapping.TypeDesc.
Type
, out replacedInfo))
System\Xml\Serialization\XmlMembersMapping.cs (2)
27
if (mapping.Members[i].TypeDesc.
Type
!= null) {
28
key.Append(GenerateKey(mapping.Members[i].TypeDesc.
Type
, null, null));
System\Xml\Serialization\XmlReflectionImporter.cs (2)
394
baseMapping = ImportTypeMapping(modelScope.GetTypeModel(model.TypeDesc.BaseTypeDesc.
Type
), ns, context, dataType, null, repeats, openModel, limiter);
395
return CreateNullableMapping(baseMapping, model.TypeDesc.
Type
);
System\Xml\Serialization\XmlSchemaExporter.cs (1)
828
System.Reflection.MethodInfo format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.
Type
});
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
345
Type type = xmlMappings[i].Accessor.Mapping.TypeDesc.
Type
;
System\Xml\Serialization\XmlSerializationILGen.cs (1)
430
Type type = xmlMappings[i].Accessor.Mapping.TypeDesc.
Type
;
System\Xml\Serialization\XmlSerializationReader.cs (3)
3080
if (structMapping.TypeDesc.
Type
!= null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.
Type
)) {
4299
if (element.Mapping.TypeDesc.
Type
== typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (66)
636
RaCodeGen.ILGenForCreateInstance(ilg, mappings[i].TypeDesc.
Type
, false, false);
637
ilg.ConvertValue(mappings[i].TypeDesc.
Type
, typeof(object));
709
mapping.TypeDesc.
Type
,
1022
ilg.Ldc(Enum.ToObject(mapping.TypeDesc.
Type
, constants[i].Value));
1023
ilg.ConvertValue(mapping.TypeDesc.
Type
, typeof(long));
1056
returnType = mapping.TypeDesc.
Type
;
1123
retValues.Add(Enum.ToObject(mapping.TypeDesc.
Type
, c.Value));
1147
ilg.Ldc(mapping.TypeDesc.
Type
);
1184
derived.TypeDesc.
Type
,
1230
mapping.TypeDesc.
Type
,
1285
LocalBuilder aLoc = ilg.DeclareLocal(mapping.TypeDesc.
Type
, aVar);
1287
RaCodeGen.ILGenForCreateInstance(ilg, td.
Type
, false, false);
1309
nullableMapping.TypeDesc.
Type
,
1315
LocalBuilder oLoc = ilg.DeclareLocal(nullableMapping.TypeDesc.
Type
, "o");
1318
ilg.InitObj(nullableMapping.TypeDesc.
Type
);
1367
structMapping.TypeDesc.
Type
,
1543
if (structMapping.TypeDesc.
Type
!= null && typeof(XmlSchemaObject).IsAssignableFrom(structMapping.TypeDesc.
Type
)) {
1721
ilg.Ldloc(structMapping.TypeDesc.
Type
, "o");
1946
ConstructorInfo ctor = xmlnsMember.Mapping.TypeDesc.
Type
.GetConstructor(
1953
WriteSourceEnd(xmlnsMember.Source, xmlnsMember.Mapping.TypeDesc.
Type
);
1958
MethodInfo Add = xmlnsMember.Mapping.TypeDesc.
Type
.GetMethod(
1972
ILGenLoad(xmlnsMember.ArraySource, xmlnsMember.Mapping.TypeDesc.
Type
);
2101
WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc.IsArrayLike ? member.Mapping.TypeDesc.ArrayElementTypeDesc.
Type
: member.Mapping.TypeDesc.
Type
);
2117
WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc.IsArrayLike ? member.Mapping.TypeDesc.ArrayElementTypeDesc.
Type
: member.Mapping.TypeDesc.
Type
);
2163
WriteSourceEnd(attributeSource, member.Mapping.TypeDesc.ArrayElementTypeDesc.
Type
);
2169
WriteSourceEnd(member.ArraySource, member.Mapping.TypeDesc.IsArrayLike ? member.Mapping.TypeDesc.ArrayElementTypeDesc.
Type
: member.Mapping.TypeDesc.
Type
);
2208
WriteCreateInstance(a, typeDesc.CannotNew, typeDesc.
Type
);
2211
WriteSourceEnd(member.Source, typeDesc.
Type
);
2234
RaCodeGen.ILGenForCreateInstance(ilg, member.Mapping.TypeDesc.
Type
, typeDesc.CannotNew, true);
2235
WriteSourceEnd(member.Source, member.Mapping.TypeDesc.
Type
);
2239
WriteLocalDecl(a, new SourceInfo(member.Source, member.Source, member.Mapping.MemberInfo, member.Mapping.TypeDesc.
Type
, ilg));
2413
WriteSourceEnd(member.ArraySource, special.TypeDesc.
Type
);
2475
WriteSourceEnd(member.ArraySource, text.Mapping.TypeDesc.
Type
);
2680
ilg.Ldc(typeDesc.ArrayElementTypeDesc.
Type
);
2683
ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.
Type
);
2684
WriteSourceEnd(member.Source, typeDesc.
Type
);
2694
ilg.Ldc(member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.
Type
);
2697
ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.
Type
.MakeArrayType());
2698
WriteSourceEnd(member.ChoiceSource, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.
Type
.MakeArrayType());
3005
element.Mapping.TypeDesc.
Type
,
3009
WriteSourceEnd(source, element.Mapping.TypeDesc.
Type
);
3031
WriteSourceEnd(source, element.Mapping.TypeDesc.
Type
);
3071
if (LocalAppContextSwitches.EnableTimeSpanSerialization && element.Mapping.TypeDesc.
Type
== typeof(TimeSpan))
3110
WriteSourceEnd(source, element.Mapping.TypeDesc.
Type
);
3114
WriteSourceEnd(source, element.Mapping.TypeDesc.
Type
);
3144
WriteSourceEnd(source, element.Mapping.TypeDesc.
Type
);
3193
mapping.TypeDesc.
Type
,
3197
WriteSourceEnd(source, mapping.TypeDesc.
Type
);
3220
ilg.Castclass(special.TypeDesc.
Type
);
3221
WriteSourceEnd(source, special.TypeDesc.
Type
);
3262
RaCodeGen.ILGenForCreateInstance(ilg, sm.TypeDesc.
Type
, sm.TypeDesc.CannotNew, false);
3270
ilg.ConvertValue(typeof(IXmlSerializable), sm.TypeDesc.
Type
);
3271
WriteSourceEnd(source, sm.TypeDesc.
Type
);
3292
RaCodeGen.ILGenForEnumMember(ilg, choice.Mapping.TypeDesc.
Type
, choice.MemberIds[elementIndex]);
3293
WriteSourceEnd(choiceSource, choice.Mapping.TypeDesc.
Type
);
3328
RaCodeGen.ILGenForCreateInstance(ilg, derived.TypeDesc.
Type
, derived.TypeDesc.CannotNew, false);
3336
ilg.ConvertValue(typeof(IXmlSerializable), head.TypeDesc.
Type
);
3337
WriteSourceEnd(source, head.TypeDesc.
Type
);
3488
mapping.TypeDesc.
Type
,
3494
RaCodeGen.ILGenForCreateInstance(ilg, mapping.TypeDesc.
Type
, mapping.TypeDesc.CannotNew, true);
3543
ilg.Ldc(typeDesc.
Type
);
3583
RaCodeGen.WriteArrayLocalDecl(typeName, variableName, new SourceInfo(initValue, initValue, null, arrayTypeDesc.
Type
, ilg), arrayTypeDesc);
System\Xml\Serialization\XmlSerializationWriter.cs (3)
1814
if (!mapping.IsSoap && !mapping.TypeDesc.IsValueType && !mapping.TypeDesc.
Type
.IsPrimitive) {
2085
if (mapping.TypeDesc.
Type
!= null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.
Type
)) {
System\Xml\Serialization\XmlSerializationWriterILGen.cs (57)
97
source.Load(mapping.TypeDesc.
Type
);
98
argTypes.Add(mapping.TypeDesc.
Type
);
128
new Type[] { mapping.TypeDesc.
Type
});
130
source.Load(mapping.TypeDesc.
Type
);
137
source.Load(typeDesc.
Type
);
138
returnType = typeDesc.
Type
;
142
Type argType = typeDesc.
Type
;
150
source.Load(typeDesc.
Type
);
165
new Type[] { typeDesc.
Type
},
168
source.Load(typeDesc.
Type
);
185
source.Load(mapping.TypeDesc.
Type
);
200
ilg.Ldc(Enum.Parse(mapping.TypeDesc.
Type
, enumDefaultValue, false));
532
if (!mapping.TypeDesc.IsValueType && !mapping.TypeDesc.
Type
.IsPrimitive) {
558
argTypes.Add(mapping.TypeDesc.
Type
);
579
LocalBuilder localTmp = ilg.DeclareLocal(mapping.TypeDesc.
Type
, "localTmp");
587
ilg.Ldc(Enum.ToObject(mapping.TypeDesc.
Type
, c.Value));
675
ilg.ConvertValue(mapping.TypeDesc.
Type
, typeof(Int64));
695
WriteTypeCompare("t", derived.TypeDesc.
Type
);
714
ilg.ConvertValue(oType, derived.TypeDesc.
Type
);
715
argTypes.Add(derived.TypeDesc.
Type
);
740
WriteTypeCompare("t", mapping.TypeDesc.
Type
);
784
new Type[] { mapping.TypeDesc.
Type
}
798
ilg.ConvertValue(ilg.GetVariableType(oVar), mapping.TypeDesc.
Type
);
818
WriteArrayTypeCompare("t", mapping.TypeDesc.
Type
);
820
WriteTypeCompare("t", mapping.TypeDesc.
Type
);
885
argTypes.Add(mapping.TypeDesc.
Type
);
935
WriteTypeCompare("t", mapping.TypeDesc.
Type
);
976
if (mapping.TypeDesc.
Type
!= null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.
Type
)) {
1119
ilg.Ldloc(memberTypeDesc.
Type
, aVar);
1173
WriteLocalDecl(aiVar, RaCodeGen.GetStringForArrayMember(aVar, iVar, memberTypeDesc), arrayElementTypeDesc.
Type
);
1228
WriteEnumValue((EnumMapping)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.
Type
, ilg), out argType);
1230
WritePrimitiveValue(arrayElementTypeDesc, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.
Type
, ilg), out argType);
1441
MethodInfo getEnumeratorMethod = arrayTypeDesc.
Type
.GetMethod(
1456
Type typeIEnumerable = arrayTypeDesc.IsGenericInterface ? typeof(IEnumerable<>).MakeGenericType(arrayElementTypeDesc.
Type
) : typeof(IEnumerable);
1465
ilg.ConvertValue(arrayTypeDesc.
Type
, typeIEnumerable);
1478
WriteLocalDecl(arrayNamePlusI, "e.Current", arrayElementTypeDesc.
Type
);
1479
WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.
Type
, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, true);
1505
WriteLocalDecl(arrayNamePlusI, RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), arrayElementTypeDesc.
Type
);
1507
WriteLocalDecl(choiceName + "i", RaCodeGen.GetStringForArrayMember(choiceName, iPlusArrayName, choice.Mapping.TypeDesc), choice.Mapping.TypeDesc.
Type
);
1509
WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.
Type
, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable);
1512
WriteElements(new SourceInfo(RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), null, null, arrayElementTypeDesc.
Type
, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable);
1557
ILGenLoad(enumSource, choice == null ? null : choice.Mapping.TypeDesc.
Type
);
1585
WriteInstanceOf(source, td.
Type
);
1631
ILGenLoad(enumSource, choice == null ? null : choice.Mapping.TypeDesc.
Type
);
1754
WriteInstanceOf(source, text.Mapping.TypeDesc.
Type
);
1849
if (source.Type == element.Mapping.TypeDesc.
Type
) {
1850
MethodInfo Nullable_get_HasValue = element.Mapping.TypeDesc.
Type
.GetMethod(
1857
source.LoadAddress(element.Mapping.TypeDesc.
Type
);
1938
source.Load(mapping.TypeDesc.
Type
);
1939
argTypes.Add(mapping.TypeDesc.
Type
);
2094
WriteInstanceOf(source, typeDesc.
Type
);
2181
eValue = Enum.ToObject(choiceMapping.TypeDesc.
Type
, choiceMapping.Constants[i].Value);
2193
eValue = Enum.ToObject(choiceMapping.TypeDesc.
Type
, choiceMapping.Constants[i].Value);
2259
return new SourceInfo(GetStringForMember(obj, member.Name, typeDesc), obj, memberInfo, member.TypeDesc.
Type
, ilg);
2419
Type localType = (typeName == arrayTypeDesc.CSharpName) ? arrayTypeDesc.
Type
: arrayTypeDesc.
Type
.MakeArrayType();