Esempio n. 1
0
        public bool Contains(int id)
        {
            if (Action == null)
            {
                return(false);
            }

            if (End.IsPresent() && End.Get().Id == id)
            {
                return(true);
            }

            if (Begin.IsPresent() && Begin.Get().Id == id)
            {
                return(true);
            }

            if (Action == null || !Action.IsPresent())
            {
                return(false);
            }

            return(Action.Get().Id == id);
        }