System.Text.UTF7Encoding.GetByteCount C# (CSharp) Method

GetByteCount() private method

private GetByteCount ( char chars, int count ) : int
chars char
count int
return int
        public unsafe override int GetByteCount(char* chars, int count)
        {
            throw null;
        }

Same methods

UTF7Encoding::GetByteCount ( char chars, int index, int count ) : int
UTF7Encoding::GetByteCount ( string s ) : int

Usage Example

示例#1
0
 public void PosTest2()
 {
     Byte[] bytes;
     Char[] chars = new Char[] { };
     UTF7Encoding UTF7 = new UTF7Encoding();
     int byteCount = UTF7.GetByteCount(chars, 0, 0);
     bytes = new Byte[byteCount];
     int bytesEncodedCount = UTF7.GetBytes(chars, 0, 0, bytes, 0);
     Assert.Equal(0, bytesEncodedCount);
 }
All Usage Examples Of System.Text.UTF7Encoding::GetByteCount