47 references to ConvertValue
System.Private.Xml (47)
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 (26)
394ilg.ConvertValue(CodeGenerator.GetVariableType(pVar), typeof(object)); 698ilg.ConvertValue(mappings[i].TypeDesc!.Type!, typeof(object)); 1070ilg.ConvertValue(mapping.TypeDesc.Type!, typeof(long)); 1071ilg.ConvertValue(typeof(long), typeof(object)); 1135ilg.ConvertValue(typeof(long), underlyingType); 1238ilg.ConvertValue(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType); 1299ilg.ConvertValue(methodBuilder.ReturnType, eLoc.LocalType); 2054ilg.ConvertValue(XmlDocument_ReadNode.ReturnType, localAttr.LocalType); 2072ilg.ConvertValue(firstParam.LocalType, typeof(object)); 2134ilg.ConvertValue(attrLoc.LocalType, typeof(XmlAttribute)); 2763ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type!); 2778ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType()); 2898ilg.ConvertValue(stackType, elementType); 2899ilg.ConvertValue(elementType, varType); 2909ilg.ConvertValue(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType); 2919ilg.ConvertValue(elementType, arrayElementType); 2943ilg.ConvertValue(stackType, addParameterType); 2956ilg.ConvertValue(stackType, varElementType); 3446ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3448ilg.ConvertValue(sm.TypeDesc.Type!, typeof(IXmlSerializable)); 3454ilg.ConvertValue(typeof(IXmlSerializable), sm.TypeDesc.Type!); 3519ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3525ilg.ConvertValue(typeof(IXmlSerializable), head.TypeDesc.Type!); 3754ilg.ConvertValue(localO.LocalType, typeof(object)); 3766ilg.ConvertValue(localO.LocalType, typeof(object)); 3778ilg.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)); 1498ilg.ConvertValue(arrayTypeDesc.Type!, typeIEnumerable); 1509ilg.ConvertValue(arrayTypeDesc.Type!, typeIEnumerable); 1518ilg.ConvertValue(getEnumeratorMethod.ReturnType, typeof(IEnumerator)); 2363ilg.ConvertValue(argV.ArgType, typeof(long)); 2526ilg.ConvertValue(Activator_CreateInstance.ReturnType, cast); 2558initValue.ILG.ConvertValue(propInfo.PropertyType, localA.LocalType); 2564initValue.ILG.ConvertValue(CodeGenerator.GetVariableType(sVar), localA.LocalType);