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)
318ilg.ConvertValue(CodeGenerator.GetVariableType(pVar), typeof(object)); 622ilg.ConvertValue(mappings[i].TypeDesc!.Type!, typeof(object)); 994ilg.ConvertValue(mapping.TypeDesc.Type!, typeof(long)); 995ilg.ConvertValue(typeof(long), typeof(object)); 1059ilg.ConvertValue(typeof(long), underlyingType); 1162ilg.ConvertValue(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType); 1223ilg.ConvertValue(methodBuilder.ReturnType, eLoc.LocalType); 1978ilg.ConvertValue(XmlDocument_ReadNode.ReturnType, localAttr.LocalType); 1996ilg.ConvertValue(firstParam.LocalType, typeof(object)); 2058ilg.ConvertValue(attrLoc.LocalType, typeof(XmlAttribute)); 2647ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type!); 2662ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType()); 2782ilg.ConvertValue(stackType, elementType); 2783ilg.ConvertValue(elementType, varType); 2793ilg.ConvertValue(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType); 2803ilg.ConvertValue(elementType, arrayElementType); 2827ilg.ConvertValue(stackType, addParameterType); 2840ilg.ConvertValue(stackType, varElementType); 3231ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3237ilg.ConvertValue(typeof(IXmlSerializable), sm.TypeDesc.Type!); 3302ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3308ilg.ConvertValue(typeof(IXmlSerializable), head.TypeDesc.Type!); 3537ilg.ConvertValue(localO.LocalType, typeof(object)); 3549ilg.ConvertValue(localO.LocalType, typeof(object)); 3561ilg.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);