Ejemplo n.º 1
0
 public static void Do <TEntity>(this ICollection <TEntity> entitys, DoFun <TEntity> func) where TEntity : class
 {
     foreach (var entity in entitys)
     {
         func.Invoke(entity);
     }
 }
Ejemplo n.º 2
0
 public CmdType(string name, DoFun doFun, short position, short level, short log, int race, short dicipline, short discLevel)
 {
     Name       = name;
     DoFun      = doFun;
     Position   = position;
     Level      = level;
     Log        = log;
     Race       = race;
     Discipline = Discipline;
     DiscLevel  = discLevel;
 }