26 references to Ldc
System.Private.Xml (26)
System\Xml\Serialization\CodeGenerator.cs (3)
641
Ldc
(obj);
778
Ldc
(Convert.ChangeType(o, Enum.GetUnderlyingType(valueType), null));
863
Ldc
(((DateTimeOffset)o).Offset); // offset
System\Xml\Serialization\XmlSerializationILGen.cs (2)
254
ilg.
Ldc
(type);
457
ilg.
Ldc
(type);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
993
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc!.Type!, constants[i].Value));
1105
ilg.
Ldc
(retValues[i]);
1119
ilg.
Ldc
(mapping.TypeDesc.Type!);
2280
ilg.
Ldc
(XmlNodeType.Text);
2286
ilg.
Ldc
(XmlNodeType.CDATA);
2292
ilg.
Ldc
(XmlNodeType.Whitespace);
2298
ilg.
Ldc
(XmlNodeType.SignificantWhitespace);
2644
ilg.
Ldc
(typeDesc.ArrayElementTypeDesc!.Type!);
2659
ilg.
Ldc
(member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.Type!);
2726
ilg.
Ldc
(arrayElementType);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
222
ilg.
Ldc
(Enum.Parse(mapping.TypeDesc.Type!, enumDefaultValue!, false));
634
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc.Type!, c.Value));
648
ilg.
Ldc
(retValues[i]);
696
ilg.
Ldc
(retValues[i]);
2129
ilg.
Ldc
(Convert.ChangeType(value, source.Type!, CultureInfo.InvariantCulture));
2136
ilg.
Ldc
(value is string ? GetCSharpString((string)value) : value);
2342
ilg.
Ldc
(Enum.Parse(type, memberName, false));
2419
ilg.
Ldc
(type);
2479
ilg.
Ldc
(type);
2561
ilg.
Ldc
(type);
2569
ilg.
Ldc
(arrayType);