System.Text.UTF8Encoding.GetMaxCharCount C# (CSharp) Method

GetMaxCharCount() public method

public GetMaxCharCount ( int byteCount ) : int
byteCount int
return int
        public override int GetMaxCharCount(int byteCount)
        {
            throw null;
        }

Usage Example

 public void NegTest1()
 {
     UTF8Encoding utf8 = new UTF8Encoding();
     int byteCount = -1;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         int maxCharCount = utf8.GetMaxCharCount(byteCount);
     });
 }
All Usage Examples Of System.Text.UTF8Encoding::GetMaxCharCount