//public static bool AllLocations(this IRolCan me, params LocationDto[] locations) => me.ByAll(locations); //public static bool AnyLocations(this IRolCan me, params LocationDto[] locations) => me.ByAny(locations); //public static bool AllLocations(this IRolCan me, params LocationDao[] locations) => me.ByAll(locations); //public static bool AnyLocations(this IRolCan me, params LocationDao[] locations) => me.ByAny(locations); //public static bool AllLocations(this IRolCan me, params LocationDto[] locations) => me.AllInstances(locations); //public static bool AnyLocations(this IRolCan me, params LocationDto[] locations) => me.AnyInstance(locations); //public static bool AllLocations(this IRolCan me, params LocationDao[] locations) => me.AllInstances(locations); public static bool AllLocations2 <TLocation>(this IRolCan me, params TLocation[] locations) where TLocation : LocationDao => me.AllInstances(locations);
// One instance public static bool Instance <T>(this IRolCan me, T value) { using (var res = Printer.CallResult <bool>()) return(res.Value = me.AllInstances(new[] { value })); }
// One instance public static bool Instance <T>(this IRolCan me, T value) => me.AllInstances(new[] { value });