Esempio n. 1
0
 //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);
Esempio n. 2
0
 // 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 }));
 }
Esempio n. 3
0
 // One instance
 public static bool Instance <T>(this IRolCan me, T value) => me.AllInstances(new[] { value });