public static int GetTagLength(BerTag tag) { var number = tag.Number; if(number < 0x1F) return 1; return 1 + GetMultiByteLongLength(number); }