Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public VersionedType(VersionedTypeId id, Type clrType)
 {
     Id      = id;
     ClrType = clrType;
 }