Note: This method is new in the .NET Framework version 2.0.
When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.
This method is not CLS-compliant. Namespace: System.Text Assembly: mscorlib (in mscorlib.dll)
To calculate the exact array size that GetChars requires to store the resulting characters, use GetCharCount. To calculate the maximum array size, use GetMaxCharCount. The GetCharCount method generally allows you to allocate less memory, whereas the GetMaxCharCount method generally executes faster.