46 references to ConvertValue
System.Private.Xml (46)
System\Xml\Serialization\CodeGenerator.cs (1)
472ConvertValue(GetVariableType(value), objType);
System\Xml\Serialization\SourceInfo.cs (4)
99ILG.ConvertValue(eType, elementType); 199ILG.ConvertValue(varType, Type!); 214ILG.ConvertValue(sourceType, targetType); 233ILG.ConvertValue(Nullable_get_Value.ReturnType, targetType);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
377ilg.ConvertValue(typeof(object), typeof(object[])); 587ilg.ConvertValue(memType, type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (25)
317ilg.ConvertValue(CodeGenerator.GetVariableType(pVar), typeof(object)); 621ilg.ConvertValue(mappings[i].TypeDesc!.Type!, typeof(object)); 993ilg.ConvertValue(mapping.TypeDesc.Type!, typeof(long)); 994ilg.ConvertValue(typeof(long), typeof(object)); 1058ilg.ConvertValue(typeof(long), underlyingType); 1161ilg.ConvertValue(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType); 1222ilg.ConvertValue(methodBuilder.ReturnType, eLoc.LocalType); 1977ilg.ConvertValue(XmlDocument_ReadNode.ReturnType, localAttr.LocalType); 1995ilg.ConvertValue(firstParam.LocalType, typeof(object)); 2057ilg.ConvertValue(attrLoc.LocalType, typeof(XmlAttribute)); 2646ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type!); 2661ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType()); 2781ilg.ConvertValue(stackType, elementType); 2782ilg.ConvertValue(elementType, varType); 2792ilg.ConvertValue(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType); 2802ilg.ConvertValue(elementType, arrayElementType); 2826ilg.ConvertValue(stackType, addParameterType); 2839ilg.ConvertValue(stackType, varElementType); 3230ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3236ilg.ConvertValue(typeof(IXmlSerializable), sm.TypeDesc.Type!); 3301ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3307ilg.ConvertValue(typeof(IXmlSerializable), head.TypeDesc.Type!); 3536ilg.ConvertValue(localO.LocalType, typeof(object)); 3548ilg.ConvertValue(localO.LocalType, typeof(object)); 3560ilg.ConvertValue(localO.LocalType, typeof(object));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (14)
330ilg.ConvertValue(CodeGenerator.GetVariableType(oVar), typeof(object)); 719ilg.ConvertValue(mapping.TypeDesc.Type!, typeof(long)); 760ilg.ConvertValue(oType, derived.TypeDesc.Type!); 841ilg.ConvertValue(CodeGenerator.GetVariableType(oVar), mapping.TypeDesc.Type!); 1000ilg.ConvertValue(oArg.ArgType, typeof(object)); 1036ilg.ConvertValue(argO.ArgType, typeof(object)); 1371ilg.ConvertValue(ilg.GetArg(parent).ArgType, typeof(object)); 1494ilg.ConvertValue(arrayTypeDesc.Type!, typeIEnumerable); 1505ilg.ConvertValue(arrayTypeDesc.Type!, typeIEnumerable); 1514ilg.ConvertValue(getEnumeratorMethod.ReturnType, typeof(IEnumerator)); 2320ilg.ConvertValue(argV.ArgType, typeof(long)); 2483ilg.ConvertValue(Activator_CreateInstance.ReturnType, cast); 2515initValue.ILG.ConvertValue(propInfo.PropertyType, localA.LocalType); 2521initValue.ILG.ConvertValue(CodeGenerator.GetVariableType(sVar), localA.LocalType);