Exemplo n.º 1
0
        public static bool DependsOn <A, B, C, D, E, F, G, H>(this TraitDescriptor descriptor, out A first, out B second, out C third, out D fourth, out E fifth, out F sixth, out G seventh, out H eighth) where A : Trait where B : Trait where C : Trait where D : Trait where E : Trait where F : Trait where G : Trait where H : Trait
        {
            var a = descriptor.DependsOn(out first, out second, out third, out fourth, out fifth, out sixth, out seventh);
            var b = descriptor.DependsOn(out eighth);

            return(a && b);
        }
Exemplo n.º 2
0
        public static bool DependsOn <A, B, C, D, E>(this TraitDescriptor descriptor, out A first, out B second, out C third, out D fourth, out E fifth) where A : Trait where B : Trait where C : Trait where D : Trait where E : Trait
        {
            var a = descriptor.DependsOn(out first, out second, out third, out fourth);
            var b = descriptor.DependsOn(out fifth);

            return(a && b);
        }
Exemplo n.º 3
0
        public static bool DependsOn <A, B, C>(this TraitDescriptor descriptor, out A first, out B second, out C third) where A : Trait where B : Trait where C : Trait
        {
            var a = descriptor.DependsOn(out first, out second);
            var b = descriptor.DependsOn(out third);

            return(a && b);
        }
Exemplo n.º 4
0
        public static bool DependsOn <A>(this TraitDescriptor descriptor, out A first) where A : Trait
        {
            var found = descriptor.DependsOn <A>();

            if (descriptor.Successful)
            {
                first = found;
            }
            else
            {
                first = null;
            }
            return(descriptor.Successful);
        }