Example #1
0
 public static Dependency Depend <T>(this Segment segment, Dependency.Kinds kind) => segment.Depend(kind, typeof(T));
Example #2
0
 public static Dependency Depend(this Segment segment, Dependency.Kinds kind, Type type) => new(kind, type, segment);
Example #3
0
 public static bool Is(this Dependency dependency, Dependency.Kinds kind) => dependency.Kind == kind;