public static IEnumerable <ITaskPrototype> Get(int count, TaskPriorityFlag priority) { UInt64 id = (((UInt64)count << 32) | (UInt64)priority); using (new Scope(tasksLock)) { List <ITaskPrototype> tmp; if (!prototypes.TryGetValue(id, out tmp)) { tmp = new List <ITaskPrototype>(); prototypes.Add(id, tmp); } return(tmp.ToArray()); } }
public TaskPriorityAttribute(TaskPriorityFlag flag) { this.flag = flag; }