JelloScrum.Model.Entities.Story.GetTasksWith C# (CSharp) 메소드

GetTasksWith() 공개 메소드

Gets all tasks with the given state
public GetTasksWith ( State state ) : IList
state State The state.
리턴 IList
        public virtual IList<Task> GetTasksWith(State state)
        {
            IList<Task> tasksWithState = new List<Task>();
            foreach (Task task in tasks)
            {
                if (task.State == state)
                    tasksWithState.Add(task);
            }
            return tasksWithState;
        }