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

GetMaxByteCount() public method

public GetMaxByteCount ( int charCount ) : int
charCount int
return int
        public override int GetMaxByteCount(int charCount)
        {
            throw null;
        }

Usage Example

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