25 references to Ldc
System.Xml (25)
System\Xml\Serialization\CodeGenerator.cs (2)
875
Ldc
(obj);
1050
Ldc
(((IConvertible)o).ToType(Enum.GetUnderlyingType(valueType), null));
System\Xml\Serialization\XmlSerializationILGen.cs (2)
234
ilg.
Ldc
(type);
439
ilg.
Ldc
(type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (11)
1022
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc.Type, constants[i].Value));
1131
ilg.
Ldc
(retValues[i]);
1147
ilg.
Ldc
(mapping.TypeDesc.Type);
2334
ilg.
Ldc
(XmlNodeType.Text);
2340
ilg.
Ldc
(XmlNodeType.CDATA);
2346
ilg.
Ldc
(XmlNodeType.Whitespace);
2352
ilg.
Ldc
(XmlNodeType.SignificantWhitespace);
2680
ilg.
Ldc
(typeDesc.ArrayElementTypeDesc.Type);
2694
ilg.
Ldc
(member.Mapping.ChoiceIdentifier.Mapping.TypeDesc.Type);
2752
ilg.
Ldc
(arrayElementType);
3543
ilg.
Ldc
(typeDesc.Type);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (10)
200
ilg.
Ldc
(Enum.Parse(mapping.TypeDesc.Type, enumDefaultValue, false));
587
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc.Type, c.Value));
600
ilg.
Ldc
(retValues[i]);
646
ilg.
Ldc
(retValues[i]);
2064
ilg.
Ldc
(Convert.ChangeType(value, source.Type, CultureInfo.InvariantCulture));
2070
ilg.
Ldc
(value);
2277
ilg.
Ldc
(Enum.Parse(type, memberName, false));
2358
ilg.
Ldc
(type);
2431
ilg.
Ldc
(type);
2439
ilg.
Ldc
(arrayType);