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