public Type GetTypeFromTypeId(int typeId) { if (typeId < _offset) { return Serializer.Options.KnownTypes[typeId]; } if (_identifierToType == null) throw new ArgumentException(nameof(typeId)); return _identifierToType[typeId - _offset]; }