コード例 #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);
        }
コード例 #2
0
ファイル: VersionedType.cs プロジェクト: muharihar/Revo
 public VersionedType(VersionedTypeId id, Type clrType)
 {
     Id      = id;
     ClrType = clrType;
 }