System.Text.UTF7Encoding.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()
 {
     UTF7Encoding utf7 = new UTF7Encoding();
     int charCount = -1;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         int maxByteCount = utf7.GetMaxByteCount(charCount);
     });
 }
All Usage Examples Of System.Text.UTF7Encoding::GetMaxByteCount