46 references to ConvertValue
System.Xml (46)
System\Xml\Serialization\CodeGenerator.cs (1)
676ConvertValue(GetVariableType(value), objType);
System\Xml\Serialization\SourceInfo.cs (4)
86ILG.ConvertValue(eType, elementType); 174ILG.ConvertValue(varType, Type); 187ILG.ConvertValue(sourceType, targetType); 203ILG.ConvertValue(Nullable_get_Value.ReturnType, targetType);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
359ilg.ConvertValue(typeof(object), typeof(object[])); 572ilg.ConvertValue(memType, type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (26)
317ilg.ConvertValue(ilg.GetVariableType(pVar), typeof(object)); 637ilg.ConvertValue(mappings[i].TypeDesc.Type, typeof(object)); 1023ilg.ConvertValue(mapping.TypeDesc.Type, typeof(long)); 1024ilg.ConvertValue(typeof(long), typeof(Object)); 1086ilg.ConvertValue(typeof(long), underlyingType); 1188ilg.ConvertValue(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType); 1254ilg.ConvertValue(methodBuilder.ReturnType, eLoc.LocalType); 2037ilg.ConvertValue(XmlDocument_ReadNode.ReturnType, localAttr.LocalType); 2056ilg.ConvertValue(firstParam.LocalType, typeof(object)); 2116ilg.ConvertValue(attrLoc.LocalType, typeof(XmlAttribute)); 2683ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type); 2697ilg.ConvertValue(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type.MakeArrayType()); 2801ilg.ConvertValue(stackType, elementType); 2802ilg.ConvertValue(elementType, varType); 2811ilg.ConvertValue(stackType, memInfo.MemberType == MemberTypes.Field ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType); 2821ilg.ConvertValue(elementType, arrayElementType); 2844ilg.ConvertValue(stackType, addParameterType); 2857ilg.ConvertValue(stackType, varElementType); 3264ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3270ilg.ConvertValue(typeof(IXmlSerializable), sm.TypeDesc.Type); 3330ilg.ConvertValue(typeof(object), typeof(IXmlSerializable)); 3336ilg.ConvertValue(typeof(IXmlSerializable), head.TypeDesc.Type); 3576ilg.ConvertValue(ilg.GetVariableType(idVar), typeof(string)); 3623ilg.ConvertValue(localO.LocalType, typeof(object)); 3635ilg.ConvertValue(localO.LocalType, typeof(object)); 3647ilg.ConvertValue(localO.LocalType, typeof(object));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (13)
309ilg.ConvertValue(ilg.GetVariableType(oVar), typeof(Object)); 675ilg.ConvertValue(mapping.TypeDesc.Type, typeof(Int64)); 714ilg.ConvertValue(oType, derived.TypeDesc.Type); 798ilg.ConvertValue(ilg.GetVariableType(oVar), mapping.TypeDesc.Type); 968ilg.ConvertValue(oArg.ArgType, typeof(Object)); 1003ilg.ConvertValue(argO.ArgType, typeof(Object)); 1338ilg.ConvertValue(ilg.GetArg(parent).ArgType, typeof(Object)); 1465ilg.ConvertValue(arrayTypeDesc.Type, typeIEnumerable); 1469ilg.ConvertValue(getEnumeratorMethod.ReturnType, typeof(IEnumerator)); 2241ilg.ConvertValue(argV.ArgType, typeof(long)); 2365ilg.ConvertValue(Activator_CreateInstance.ReturnType, cast); 2389initValue.ILG.ConvertValue(propInfo.PropertyType, localA.LocalType); 2394initValue.ILG.ConvertValue(initValue.ILG.GetVariableType(sVar), localA.LocalType);