private void _ensureType(TagType type) { if (_lvt != LVT.Type) throw new InvalidTagException(); else if (_type != type) throw new InvalidTagException(); }