public static void Do <TEntity>(this ICollection <TEntity> entitys, DoFun <TEntity> func) where TEntity : class { foreach (var entity in entitys) { func.Invoke(entity); } }
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; }