コード例 #1
0
ファイル: RolExtensions.cs プロジェクト: Devidence7/Fuxion
 //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);
コード例 #2
0
ファイル: RolExtensions.cs プロジェクト: osjimenez/Fuxion
 // 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 }));
 }
コード例 #3
0
 // One instance
 public static bool Instance <T>(this IRolCan me, T value) => me.AllInstances(new[] { value });