Exemplo n.º 1
0
        public IEnumerable <Option> BuildOptions()
        {
            var optionSet = new SymbolSet();

            foreach (var parameter in GetParameters().OmitInfrastructureTypes())
            {
                optionSet.Add(parameter.BuildOption());
            }

            return(optionSet.Cast <Option>());
        }
Exemplo n.º 2
0
        public IEnumerable <Option> BuildOptions()
        {
            var optionSet = new SymbolSet();

            foreach (var parameter in _constructorBinder.BuildOptions())
            {
                optionSet.Add(parameter);
            }

            foreach (var property in GetSettableProperties()
                     .OmitInfrastructureTypes())
            {
                var option = property.BuildOption();

                if (!optionSet.Contains(option.Name))
                {
                    optionSet.Add(option);
                }
            }

            return(optionSet.Cast <Option>());
        }