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