32 instantiations of DataContractSerializer
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (9)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.VisualBasic.Tests (1)
System.Private.DataContractSerialization (4)
System.ServiceModel.Primitives (5)
System.ServiceModel.Primitives.Tests (2)
System.ServiceModel.Syndication (5)
148 references to DataContractSerializer
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (21)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (11)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.VisualBasic.Tests (1)
netstandard (1)
System.Private.DataContractSerialization (88)
System\Xml\EncodingStreamWrapper.cs (18)
94_byteCount = DataContractSerializer.ValidatingUTF8.GetBytes(_chars, 0, count, _bytes, 0);
126SupportedEncoding.UTF8 => DataContractSerializer.ValidatingUTF8,
127SupportedEncoding.UTF16LE => DataContractSerializer.ValidatingUTF16,
128SupportedEncoding.UTF16BE => DataContractSerializer.ValidatingBEUTF16,
135SupportedEncoding.UTF8 => DataContractSerializer.UTF8NoBom,
136SupportedEncoding.UTF16LE => DataContractSerializer.UTF16NoBom,
137SupportedEncoding.UTF16BE => DataContractSerializer.BEUTF16NoBom,
154else if (encoding.WebName == DataContractSerializer.ValidatingUTF8.WebName)
156else if (encoding.WebName == DataContractSerializer.ValidatingUTF16.WebName)
158else if (encoding.WebName == DataContractSerializer.ValidatingBEUTF16.WebName)
177_dec = DataContractSerializer.ValidatingUTF8.GetDecoder();
403ThrowEncodingMismatch(DataContractSerializer.UTF8NoBom.GetString(buffer, encStart, encCount), DataContractSerializer.UTF8NoBom.GetString(s_encodingUTF8, 0, s_encodingUTF8.Length));
407ThrowEncodingMismatch(DataContractSerializer.UTF8NoBom.GetString(buffer, encStart, encCount), e);
411ThrowEncodingMismatch(DataContractSerializer.UTF8NoBom.GetString(buffer, encStart, encCount), e);
473bytes = new byte[DataContractSerializer.ValidatingUTF8.GetMaxByteCount(ccount)];
474int bcount = DataContractSerializer.ValidatingUTF8.GetBytes(chars, 0, ccount, bytes, 0);
488seg = new ArraySegment<byte>(DataContractSerializer.ValidatingUTF8.GetBytes(GetEncoding(declEnc).GetChars(buffer, offset, count)));
System\Xml\ValueHandle.cs (5)
443int actualLength = DataContractSerializer.Base64Encoding.GetBytes(_bufferReader.Buffer, _offset, _length, buffer, 0);
459return DataContractSerializer.Base64Encoding.GetBytes(XmlConverter.StripWhitespace(GetString()));
512return DataContractSerializer.Base64Encoding.GetString(bytes, 0, bytes.Length);
674actual = DataContractSerializer.Base64Encoding.GetBytes(_bufferReader.Buffer, _offset, charCount, buffer, offset);
708var encoding = DataContractSerializer.ValidatingUTF8;
System\Xml\XmlBaseReader.cs (3)
1178return ReadBytes(DataContractSerializer.Base64Encoding, 3, 4, buffer, offset, Math.Min(count, 512), false);
1370return ReadBytes(DataContractSerializer.Base64Encoding, 3, 4, buffer, offset, Math.Min(count, 512), true);
1390return ReadBytes(DataContractSerializer.BinHexEncoding, 1, 2, buffer, offset, Math.Min(count, 512), true);
System\Xml\XmlBaseWriter.cs (7)
1455WriteRaw(DataContractSerializer.BinHexEncoding.GetString(buffer, offset, count));
1485WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1486WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(buffer, offset, actualByteCount - _trailByteCount));
1544WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1545WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(buffer, offset, actualByteCount - _trailByteCount));
1748WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
1764WriteAttributeText(DataContractSerializer.Base64Encoding.GetString(_trailBytes, 0, _trailByteCount));
System.Runtime.Serialization (1)
System.Runtime.Serialization.Xml (1)
System.ServiceModel.Primitives (12)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (6)
21internal static DataContractSerializer CreateSerializer(Type type, int maxItems)
26internal static DataContractSerializer CreateSerializer(Type type, IList<Type> knownTypes, int maxItems)
33internal static DataContractSerializer CreateSerializer(Type type, string rootName, string rootNs, int maxItems)
38internal static DataContractSerializer CreateSerializer(Type type, IList<Type> knownTypes, string rootName, string rootNs, int maxItems)
47internal static DataContractSerializer CreateSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNs, int maxItems)
52internal static DataContractSerializer CreateSerializer(Type type, IList<Type> knownTypes, XmlDictionaryString rootName, XmlDictionaryString rootNs, int maxItems)
System.ServiceModel.Primitives.Tests (4)
System.ServiceModel.Syndication (4)