Example #1
0
        /// <inheritdoc />
        public IMenuEntryBuilder HasEntry(int priority)
        {
            var entry = new ConcreteMenuEntryBuilder(Contributor)
            {
                Priority = priority
            };

            Entries.Add(entry);
            return(entry);
        }
Example #2
0
        /// <inheritdoc />
        public IMenuEntryBuilder HasEntry(int priority)
        {
            if (finalized)
            {
                throw new InvalidOperationException();
            }
            var entry = new ConcreteMenuEntryBuilder(Contributor)
            {
                Priority = priority
            };

            entries.Add(entry);
            return(entry);
        }