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)
1069
ilg.
Ldc
(Enum.ToObject(mapping.TypeDesc!.Type!, constants[i].Value));
1181
ilg.
Ldc
(retValues[i]);
1195
ilg.
Ldc
(mapping.TypeDesc.Type!);
2357
ilg.
Ldc
(XmlNodeType.Text);
2363
ilg.
Ldc
(XmlNodeType.CDATA);
2369
ilg.
Ldc
(XmlNodeType.Whitespace);
2375
ilg.
Ldc
(XmlNodeType.SignificantWhitespace);
2760
ilg.
Ldc
(typeDesc.ArrayElementTypeDesc!.Type!);
2775
ilg.
Ldc
(member.Mapping.ChoiceIdentifier.Mapping!.TypeDesc!.Type!);
2842
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]);
2172
ilg.
Ldc
(Convert.ChangeType(value, source.Type!, CultureInfo.InvariantCulture));
2179
ilg.
Ldc
(value is string ? GetCSharpString((string)value) : value);
2385
ilg.
Ldc
(Enum.Parse(type, memberName, false));
2462
ilg.
Ldc
(type);
2522
ilg.
Ldc
(type);
2604
ilg.
Ldc
(type);
2612
ilg.
Ldc
(arrayType);