26 references to Ldc
System.Private.Xml (26)
System\Xml\Serialization\CodeGenerator.cs (3)
640
Ldc
(obj);
777
Ldc
(Convert.ChangeType(o, Enum.GetUnderlyingType(valueType), null));
862
Ldc
(((DateTimeOffset)o).Offset); // offset
System\Xml\Serialization\XmlSerializationILGen.cs (2)
258
ilg.
Ldc
(type);
465
ilg.
Ldc
(type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
1002
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc!.Type!, constants[i].Value));
1115
ilg.
Ldc
(retValues[i]);
1129
ilg.
Ldc
(mapping.TypeDesc.Type!);
2303
ilg.
Ldc
(XmlNodeType.Text);
2309
ilg.
Ldc
(XmlNodeType.CDATA);
2315
ilg.
Ldc
(XmlNodeType.Whitespace);
2321
ilg.
Ldc
(XmlNodeType.SignificantWhitespace);
2672
ilg.
Ldc
(typeDesc.ArrayElementTypeDesc!.Type!);
2687
ilg.
Ldc
(member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.Type!);
2754
ilg.
Ldc
(arrayElementType);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
229
ilg.
Ldc
(Enum.Parse(mapping.TypeDesc.Type!, enumDefaultValue!, false));
648
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc.Type!, c.Value));
662
ilg.
Ldc
(retValues[i]);
710
ilg.
Ldc
(retValues[i]);
2155
ilg.
Ldc
(Convert.ChangeType(value, source.Type!, CultureInfo.InvariantCulture));
2162
ilg.
Ldc
(value is string ? GetCSharpString((string)value) : value);
2374
ilg.
Ldc
(Enum.Parse(type, memberName, false));
2451
ilg.
Ldc
(type);
2511
ilg.
Ldc
(type);
2592
ilg.
Ldc
(type);
2600
ilg.
Ldc
(arrayType);