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