Example #1
0
        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);
        }
Example #2
0
 public VersionedType(VersionedTypeId id, Type clrType)
 {
     Id      = id;
     ClrType = clrType;
 }