74 references to Type
dotnet-svcutil-lib (74)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (3)
236
SoapAttributes baseAttributes = GetAttributes(baseTypeDesc.
Type
);
244
baseMapping = ImportTypeMapping(_modelScope.GetTypeModel(baseTypeDesc.
Type
), dataType, limiter);
245
return CreateNullableMapping(baseMapping, model.TypeDesc.
Type
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
51
return new SourceInfo("((" + td.CSharpName + ")" + Source + ")", Arg, MemberInfo, td.
Type
, ILG);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (3)
773
if (typeDesc.
Type
!= null)
774
return typeDesc.
Type
;
1179
if (ShouldBeReplaced(pair.Value, structMapping.TypeDesc.
Type
, out replacedInfo))
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 (2)
442
baseMapping = ImportTypeMapping(_modelScope.GetTypeModel(model.TypeDesc.BaseTypeDesc.
Type
), ns, context, dataType, null, repeats, openModel, limiter);
443
return CreateNullableMapping(baseMapping, model.TypeDesc.
Type
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (2)
957
if (pm.TypeDesc.
Type
== null)
967
System.Reflection.MethodInfo format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.
Type
});
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
446
Type type = xmlMappings[i].Accessor.Mapping.TypeDesc.
Type
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (3)
2107
if (!mapping.IsSoap && !mapping.TypeDesc.IsValueType && !mapping.TypeDesc.
Type
.GetTypeInfo().IsPrimitive)
2408
if (mapping.TypeDesc.
Type
!= null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.
Type
))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (57)
108
source.Load(mapping.TypeDesc.
Type
);
109
argTypes.Add(mapping.TypeDesc.
Type
);
141
new Type[] { mapping.TypeDesc.
Type
});
143
source.Load(mapping.TypeDesc.
Type
);
152
source.Load(typeDesc.
Type
);
153
returnType = typeDesc.
Type
;
159
Type argType = typeDesc.
Type
;
167
source.Load(typeDesc.
Type
);
184
new Type[] { typeDesc.
Type
},
187
source.Load(typeDesc.
Type
);
207
source.Load(mapping.TypeDesc.
Type
);
225
ilg.Ldc(Enum.Parse(mapping.TypeDesc.
Type
, enumDefaultValue, false));
588
if (!mapping.TypeDesc.IsValueType && !mapping.TypeDesc.
Type
.GetTypeInfo().IsPrimitive)
617
argTypes.Add(mapping.TypeDesc.
Type
);
639
LocalBuilder localTmp = ilg.DeclareLocal(mapping.TypeDesc.
Type
, "localTmp");
649
ilg.Ldc(Enum.ToObject(mapping.TypeDesc.
Type
, c.Value));
743
ilg.ConvertValue(mapping.TypeDesc.
Type
, typeof(Int64));
765
WriteTypeCompare("t", derived.TypeDesc.
Type
);
784
ilg.ConvertValue(oType, derived.TypeDesc.
Type
);
785
argTypes.Add(derived.TypeDesc.
Type
);
815
WriteTypeCompare("t", mapping.TypeDesc.
Type
);
859
new Type[] { mapping.TypeDesc.
Type
}
873
ilg.ConvertValue(ilg.GetVariableType(oVar), mapping.TypeDesc.
Type
);
894
WriteArrayTypeCompare("t", mapping.TypeDesc.
Type
);
896
WriteTypeCompare("t", mapping.TypeDesc.
Type
);
962
argTypes.Add(mapping.TypeDesc.
Type
);
1014
WriteTypeCompare("t", mapping.TypeDesc.
Type
);
1058
if (mapping.TypeDesc.
Type
!= null && typeof(XmlSchemaObject).IsAssignableFrom(mapping.TypeDesc.
Type
))
1220
ilg.Ldloc(memberTypeDesc.
Type
, aVar);
1277
WriteLocalDecl(aiVar, RaCodeGen.GetStringForArrayMember(aVar, iVar, memberTypeDesc), arrayElementTypeDesc.
Type
);
1335
WriteEnumValue((EnumMapping)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.
Type
, ilg), out argType);
1337
WritePrimitiveValue(arrayElementTypeDesc, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.
Type
, ilg), out argType);
1567
MethodInfo getEnumeratorMethod = arrayTypeDesc.
Type
.GetMethod(
1582
Type typeIEnumerable = arrayTypeDesc.IsGenericInterface ? typeof(IEnumerable<>).MakeGenericType(arrayElementTypeDesc.
Type
) : typeof(IEnumerable);
1591
ilg.ConvertValue(arrayTypeDesc.
Type
, typeIEnumerable);
1604
WriteLocalDecl(arrayNamePlusI, "e.Current", arrayElementTypeDesc.
Type
);
1605
WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.
Type
, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, true);
1633
WriteLocalDecl(arrayNamePlusI, RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), arrayElementTypeDesc.
Type
);
1636
WriteLocalDecl(choiceName + "i", RaCodeGen.GetStringForArrayMember(choiceName, iPlusArrayName, choice.Mapping.TypeDesc), choice.Mapping.TypeDesc.
Type
);
1638
WriteElements(new SourceInfo(arrayNamePlusI, null, null, arrayElementTypeDesc.
Type
, ilg), choiceName + "i", elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable);
1642
WriteElements(new SourceInfo(RaCodeGen.GetStringForArrayMember(arrayName, iPlusArrayName, arrayTypeDesc), null, null, arrayElementTypeDesc.
Type
, ilg), null, elements, text, choice, arrayNamePlusA, true, arrayElementTypeDesc.IsNullable);
1694
ILGenLoad(enumSource, choice == null ? null : choice.Mapping.TypeDesc.
Type
);
1724
WriteInstanceOf(source, td.
Type
);
1776
ILGenLoad(enumSource, choice == null ? null : choice.Mapping.TypeDesc.
Type
);
1908
WriteInstanceOf(source, text.Mapping.TypeDesc.
Type
);
2014
if (source.Type == element.Mapping.TypeDesc.
Type
)
2016
MethodInfo Nullable_get_HasValue = element.Mapping.TypeDesc.
Type
.GetMethod(
2023
source.LoadAddress(element.Mapping.TypeDesc.
Type
);
2119
source.Load(mapping.TypeDesc.
Type
);
2120
argTypes.Add(mapping.TypeDesc.
Type
);
2288
WriteInstanceOf(source, typeDesc.
Type
);
2388
eValue = Enum.ToObject(choiceMapping.TypeDesc.
Type
, choiceMapping.Constants[i].Value);
2402
eValue = Enum.ToObject(choiceMapping.TypeDesc.
Type
, choiceMapping.Constants[i].Value);
2475
return new SourceInfo(GetStringForMember(obj, member.Name, typeDesc), obj, memberInfo, member.TypeDesc.
Type
, ilg);
2647
Type localType = (typeName == arrayTypeDesc.CSharpName) ? arrayTypeDesc.
Type
: arrayTypeDesc.
Type
.MakeArrayType();