46 references to ConvertValue
System.Private.Xml (46)
System\Xml\Serialization\CodeGenerator.cs (1)
472
ConvertValue
(GetVariableType(value), objType);
System\Xml\Serialization\SourceInfo.cs (4)
99
ILG.
ConvertValue
(eType, elementType);
199
ILG.
ConvertValue
(varType, Type!);
214
ILG.
ConvertValue
(sourceType, targetType);
233
ILG.
ConvertValue
(Nullable_get_Value.ReturnType, targetType);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
377
ilg.
ConvertValue
(typeof(object), typeof(object[]));
587
ilg.
ConvertValue
(memType, type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (25)
317
ilg.
ConvertValue
(CodeGenerator.GetVariableType(pVar), typeof(object));
621
ilg.
ConvertValue
(mappings[i].TypeDesc!.Type!, typeof(object));
993
ilg.
ConvertValue
(mapping.TypeDesc.Type!, typeof(long));
994
ilg.
ConvertValue
(typeof(long), typeof(object));
1058
ilg.
ConvertValue
(typeof(long), underlyingType);
1161
ilg.
ConvertValue
(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType);
1222
ilg.
ConvertValue
(methodBuilder.ReturnType, eLoc.LocalType);
1977
ilg.
ConvertValue
(XmlDocument_ReadNode.ReturnType, localAttr.LocalType);
1995
ilg.
ConvertValue
(firstParam.LocalType, typeof(object));
2057
ilg.
ConvertValue
(attrLoc.LocalType, typeof(XmlAttribute));
2646
ilg.
ConvertValue
(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type!);
2661
ilg.
ConvertValue
(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType());
2781
ilg.
ConvertValue
(stackType, elementType);
2782
ilg.
ConvertValue
(elementType, varType);
2792
ilg.
ConvertValue
(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType);
2802
ilg.
ConvertValue
(elementType, arrayElementType);
2826
ilg.
ConvertValue
(stackType, addParameterType);
2839
ilg.
ConvertValue
(stackType, varElementType);
3230
ilg.
ConvertValue
(typeof(object), typeof(IXmlSerializable));
3236
ilg.
ConvertValue
(typeof(IXmlSerializable), sm.TypeDesc.Type!);
3301
ilg.
ConvertValue
(typeof(object), typeof(IXmlSerializable));
3307
ilg.
ConvertValue
(typeof(IXmlSerializable), head.TypeDesc.Type!);
3536
ilg.
ConvertValue
(localO.LocalType, typeof(object));
3548
ilg.
ConvertValue
(localO.LocalType, typeof(object));
3560
ilg.
ConvertValue
(localO.LocalType, typeof(object));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (14)
330
ilg.
ConvertValue
(CodeGenerator.GetVariableType(oVar), typeof(object));
719
ilg.
ConvertValue
(mapping.TypeDesc.Type!, typeof(long));
760
ilg.
ConvertValue
(oType, derived.TypeDesc.Type!);
841
ilg.
ConvertValue
(CodeGenerator.GetVariableType(oVar), mapping.TypeDesc.Type!);
1000
ilg.
ConvertValue
(oArg.ArgType, typeof(object));
1036
ilg.
ConvertValue
(argO.ArgType, typeof(object));
1371
ilg.
ConvertValue
(ilg.GetArg(parent).ArgType, typeof(object));
1494
ilg.
ConvertValue
(arrayTypeDesc.Type!, typeIEnumerable);
1505
ilg.
ConvertValue
(arrayTypeDesc.Type!, typeIEnumerable);
1514
ilg.
ConvertValue
(getEnumeratorMethod.ReturnType, typeof(IEnumerator));
2320
ilg.
ConvertValue
(argV.ArgType, typeof(long));
2483
ilg.
ConvertValue
(Activator_CreateInstance.ReturnType, cast);
2515
initValue.ILG.
ConvertValue
(propInfo.PropertyType, localA.LocalType);
2521
initValue.ILG.
ConvertValue
(CodeGenerator.GetVariableType(sVar), localA.LocalType);