public static bool DependsOn <A, B, C, D, E, F, G, H>(this TraitDependencies dependencies, 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 = dependencies.DependsOn(out first, out second, out third, out fourth, out fifth, out sixth, out seventh); var b = dependencies.DependsOn(out eighth); return(a && b); }
public static bool DependsOn <A, B, C, D, E>(this TraitDependencies dependencies, 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 = dependencies.DependsOn(out first, out second, out third, out fourth); var b = dependencies.DependsOn(out fifth); return(a && b); }
public static bool DependsOn <A, B, C>(this TraitDependencies dependencies, out A first, out B second, out C third) where A : Trait where B : Trait where C : Trait { var a = dependencies.DependsOn(out first, out second); var b = dependencies.DependsOn(out third); return(a && b); }
public static bool DependsOn <A>(this TraitDependencies dependencies, out A first) where A : Trait { var found = dependencies.DependsOn <A>(); if (dependencies.Successful) { first = found; } else { first = null; } return(dependencies.Successful); }