private int GetByteCount(char[] chars) { if (_encoding == null) { return s_UTF8Encoding.GetByteCount(chars); } else { return _encoding.GetByteCount(chars); } }