SanderVantEinde.WindesheimRoosterBot.Rooster.GetLesByID C# (CSharp) Method

GetLesByID() public method

public GetLesByID ( int id, System.DateTime after = newDateTime() ) : Les
id int
after System.DateTime
return Les
        public Les GetLesByID(int id, DateTime after = new DateTime())
        {
            foreach (Les l in Lessen)
                if (l.ID == id && l.StartTime > after) 
                    return l;
            return null;
        }