System\ServiceModel\Channels\MtomMessageEncoder.cs (8)
22public MtomMessageEncoderFactory(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, int maxBufferSize, XmlDictionaryReaderQuotas quotas)
60public static Encoding[] GetSupportedEncodings()
62Encoding[] supported = TextEncoderDefaults.SupportedEncodings;
63Encoding[] enc = new Encoding[supported.Length];
74Encoding writeEncoding;
100public MtomMessageEncoder(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, int maxBufferSize, XmlDictionaryReaderQuotas quotas)
214Encoding tmp;
System\ServiceModel\Channels\TextMessageEncoder.cs (18)
26public TextMessageEncoderFactory(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas)
51public static Encoding[] GetSupportedEncodings()
53Encoding[] supported = TextEncoderDefaults.SupportedEncodings;
54Encoding[] enc = new Encoding[supported.Length];
90internal static string GetContentType(string mediaType, Encoding encoding)
97Encoding[] readEncodings = TextMessageEncoderFactory.GetSupportedEncodings();
110internal static Encoding GetEncodingFromContentType(string contentType, ContentEncoding[] contentMap)
182Encoding enc;
230internal static bool TryGetEncodingFromCharSet(string charSet, out Encoding encoding)
242internal Encoding encoding;
260Encoding writeEncoding;
269public TextMessageEncoder(MessageVersion version, Encoding writeEncoding, int maxReadPoolSize, int maxWritePoolSize, XmlDictionaryReaderQuotas quotas)
314static bool IsUTF8Encoding(Encoding encoding)
360Encoding tmp;
701XmlReader TakeStreamedReader(Stream stream, Encoding enc)
800Encoding encoding;
812internal Encoding Encoding
System\ServiceModel\Channels\TransportDefaults.cs (18)
56internal static readonly Encoding Encoding = Encoding.GetEncoding(TextEncoderDefaults.EncodingString, new EncoderExceptionFallback(), new DecoderExceptionFallback());
58internal static readonly Encoding[] SupportedEncodings = new Encoding[] { Encoding.UTF8, Encoding.Unicode, Encoding.BigEndianUnicode };
62new CharSetEncoding("utf-8", Encoding.UTF8),
63new CharSetEncoding("utf-16LE", Encoding.Unicode),
64new CharSetEncoding("utf-16BE", Encoding.BigEndianUnicode),
69internal static void ValidateEncoding(Encoding encoding)
72Encoding[] supportedEncodings = SupportedEncodings;
81internal static string EncodingToCharSet(Encoding encoding)
87Encoding enc = charSetEncodings[i].Encoding;
97internal static bool TryGetEncoding(string charSet, out Encoding encoding)
132internal Encoding Encoding;
134internal CharSetEncoding(string charSet, Encoding enc)
473internal static Encoding TextEncoding
System\ServiceModel\Configuration\Properties.cs (5)
1260properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
2009properties.Add(new ConfigurationProperty("writeEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
2738properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
3558properties.Add(new ConfigurationProperty("writeEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
3794properties.Add(new ConfigurationProperty("textEncoding", typeof(System.Text.Encoding), "utf-8", new System.ServiceModel.Configuration.EncodingConverter(), null, System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (4)
70System.Text.Encoding.ASCII.GetChars(bytes, 0, size, buffer, 0);
89System.Text.Encoding.Unicode.GetChars(bytes, 0, size * 2, buffer, 0);
251System.Text.Encoding.Unicode.GetBytes(((string)obj).ToCharArray(), 0, size / 2, buffer, 0);
278System.Text.Encoding.Unicode.GetBytes(chars, 0, size / 2, buffer, 0);