public VersionedType GetTypeInfo <TBase>(VersionedTypeId id) { var registry = GetSubtypeRegistry <TBase>(); if (!registry.Ids.TryGetValue(id, out VersionedType info)) { throw new ArgumentException($"Cannot find {typeof(TBase).Name} versioned type: {id}"); } return(info); }
public VersionedType(VersionedTypeId id, Type clrType) { Id = id; ClrType = clrType; }