Exemplo n.º 1
0
        /// <inheritdoc />
        public IMenuEntryBuilder HasEntry(int priority)
        {
            var entry = new ConcreteMenuEntryBuilder(Contributor)
            {
                Priority = priority
            };

            Entries.Add(entry);
            return(entry);
        }
Exemplo n.º 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);
        }