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)
318
ilg.
ConvertValue
(CodeGenerator.GetVariableType(pVar), typeof(object));
622
ilg.
ConvertValue
(mappings[i].TypeDesc!.Type!, typeof(object));
994
ilg.
ConvertValue
(mapping.TypeDesc.Type!, typeof(long));
995
ilg.
ConvertValue
(typeof(long), typeof(object));
1059
ilg.
ConvertValue
(typeof(long), underlyingType);
1162
ilg.
ConvertValue
(methodBuilder.ReturnType, ilg.ReturnLocal.LocalType);
1223
ilg.
ConvertValue
(methodBuilder.ReturnType, eLoc.LocalType);
1978
ilg.
ConvertValue
(XmlDocument_ReadNode.ReturnType, localAttr.LocalType);
1996
ilg.
ConvertValue
(firstParam.LocalType, typeof(object));
2058
ilg.
ConvertValue
(attrLoc.LocalType, typeof(XmlAttribute));
2647
ilg.
ConvertValue
(XmlSerializationReader_ShrinkArray.ReturnType, typeDesc.Type!);
2662
ilg.
ConvertValue
(XmlSerializationReader_ShrinkArray.ReturnType, member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type!.MakeArrayType());
2782
ilg.
ConvertValue
(stackType, elementType);
2783
ilg.
ConvertValue
(elementType, varType);
2793
ilg.
ConvertValue
(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType);
2803
ilg.
ConvertValue
(elementType, arrayElementType);
2827
ilg.
ConvertValue
(stackType, addParameterType);
2840
ilg.
ConvertValue
(stackType, varElementType);
3231
ilg.
ConvertValue
(typeof(object), typeof(IXmlSerializable));
3237
ilg.
ConvertValue
(typeof(IXmlSerializable), sm.TypeDesc.Type!);
3302
ilg.
ConvertValue
(typeof(object), typeof(IXmlSerializable));
3308
ilg.
ConvertValue
(typeof(IXmlSerializable), head.TypeDesc.Type!);
3537
ilg.
ConvertValue
(localO.LocalType, typeof(object));
3549
ilg.
ConvertValue
(localO.LocalType, typeof(object));
3561
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);