46 references to ConvertValue
System.Private.Xml (46)
System\Xml\Serialization\CodeGenerator.cs (1)
471ConvertValue(GetVariableType(value), objType);
System\Xml\Serialization\SourceInfo.cs (4)
101ILG.ConvertValue(eType, elementType); 201ILG.ConvertValue(varType, Type!); 216ILG.ConvertValue(sourceType, targetType); 235ILG.ConvertValue(Nullable_get_Value.ReturnType, targetType);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
383ilg.ConvertValue(typeof(object), typeof(object[])); 598ilg.ConvertValue(memType, type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (25)
321ilg.ConvertValue(CodeGenerator.GetVariableType(pVar), typeof(object)); 628ilg.ConvertValue(mappings[i].TypeDesc!.Type!, typeof(object)); 1003ilg.ConvertValue(mapping.TypeDesc.Type!, typeof(long)); 1004ilg.ConvertValue(typeof(long), typeof(object)); 1069ilg.ConvertValue(typeof(long), underlyingType); 1173ilg.ConvertValue(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType); 1235ilg.ConvertValue(methodBuilder.ReturnType, eLoc.LocalType); 1997ilg.ConvertValue(XmlDocument_ReadNode.ReturnType, localAttr.LocalType); 2015ilg.ConvertValue(firstParam.LocalType, typeof(object)); 2078ilg.ConvertValue(attrLoc.LocalType, typeof(XmlAttribute)); 2675ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type!); 2690ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType()); 2812ilg.ConvertValue(stackType, elementType); 2813ilg.ConvertValue(elementType, varType); 2823ilg.ConvertValue(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType); 2833ilg.ConvertValue(elementType, arrayElementType); 2857ilg.ConvertValue(stackType, addParameterType); 2870ilg.ConvertValue(stackType, varElementType); 3263ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3269ilg.ConvertValue(typeof(IXmlSerializable), sm.TypeDesc.Type!); 3335ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3341ilg.ConvertValue(typeof(IXmlSerializable), head.TypeDesc.Type!); 3574ilg.ConvertValue(localO.LocalType, typeof(object)); 3586ilg.ConvertValue(localO.LocalType, typeof(object)); 3598ilg.ConvertValue(localO.LocalType, typeof(object));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (14)
340ilg.ConvertValue(CodeGenerator.GetVariableType(oVar), typeof(object)); 733ilg.ConvertValue(mapping.TypeDesc.Type!, typeof(long)); 774ilg.ConvertValue(oType, derived.TypeDesc.Type!); 856ilg.ConvertValue(CodeGenerator.GetVariableType(oVar), mapping.TypeDesc.Type!); 1016ilg.ConvertValue(oArg.ArgType, typeof(object)); 1052ilg.ConvertValue(argO.ArgType, typeof(object)); 1389ilg.ConvertValue(ilg.GetArg(parent).ArgType, typeof(object)); 1515ilg.ConvertValue(arrayTypeDesc.Type!, typeIEnumerable); 1526ilg.ConvertValue(arrayTypeDesc.Type!, typeIEnumerable); 1535ilg.ConvertValue(getEnumeratorMethod.ReturnType, typeof(IEnumerator)); 2352ilg.ConvertValue(argV.ArgType, typeof(long)); 2515ilg.ConvertValue(Activator_CreateInstance.ReturnType, cast); 2547initValue.ILG.ConvertValue(propInfo.PropertyType, localA.LocalType); 2553initValue.ILG.ConvertValue(CodeGenerator.GetVariableType(sVar), localA.LocalType);