Dominator.Net.GroupBuilder.Specification C# (CSharp) Method

Specification() public method

public Specification ( ) : IDominator
return IDominator
        public IDominator Specification()
        {
            // it comes in handy to allow zero nested items when building new dominators.
            // if (_nested.Count == 0)
            //	throw new InvalidOperationException($"{_title}: no nested dominators");

            var description = new DominatorDescription(_title, _explanation_ ?? "");

            var dominator = new Group(description, _nested.ToArray());
            return dominator;
        }