7 [__DynamicallyInvokable]
10 private static object s_InternalSyncObject =
new object();
15 [__DynamicallyInvokable]
23 [__DynamicallyInvokable]
29 [__DynamicallyInvokable]
37 [__DynamicallyInvokable]
55 [__DynamicallyInvokable]
74 lock (s_InternalSyncObject)
76 if (s_providers ==
null)
83 else if (Array.IndexOf(s_providers, provider) < 0)
86 Array.Copy(s_providers, array, s_providers.Length);
87 array[array.Length - 1] = provider;
93 internal static Encoding GetEncodingFromProvider(
int codepage)
95 if (s_providers ==
null)
103 Encoding encoding = encodingProvider.GetEncoding(codepage);
104 if (encoding !=
null)
112 internal static Encoding GetEncodingFromProvider(
string encodingName)
114 if (s_providers ==
null)
122 Encoding encoding = encodingProvider.GetEncoding(encodingName);
123 if (encoding !=
null)
131 internal static Encoding GetEncodingFromProvider(
int codepage, EncoderFallback enc, DecoderFallback dec)
133 if (s_providers ==
null)
141 Encoding encoding = encodingProvider.GetEncoding(codepage, enc, dec);
142 if (encoding !=
null)
150 internal static Encoding GetEncodingFromProvider(
string encodingName, EncoderFallback enc, DecoderFallback dec)
152 if (s_providers ==
null)
160 Encoding encoding = encodingProvider.GetEncoding(encodingName, enc, dec);
161 if (encoding !=
null)
Represents a character encoding.To browse the .NET Framework source code for this type,...
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
abstract Encoding GetEncoding(string name)
Returns the encoding with the specified name.
virtual Encoding GetEncoding(string name, EncoderFallback encoderFallback, DecoderFallback decoderFallback)
Returns the encoding associated with the specified name. Parameters specify an error handler for char...
virtual object Clone()
When overridden in a derived class, creates a shallow copy of the current T:System....
DecoderFallback DecoderFallback
Gets or sets the T:System.Text.DecoderFallback object for the current T:System.Text....
EncoderFallback EncoderFallback
Gets or sets the T:System.Text.EncoderFallback object for the current T:System.Text....
Provides a failure-handling mechanism, called a fallback, for an input character that cannot be conve...
Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that can...
EncodingProvider()
Initializes a new instance of the T:System.Text.EncodingProvider class.
Provides the base class for an encoding provider, which supplies encodings that are unavailable on a ...
virtual Encoding GetEncoding(int codepage, EncoderFallback encoderFallback, DecoderFallback decoderFallback)
Returns the encoding associated with the specified code page identifier. Parameters specify an error ...