示例#1
0
        /// <summary>
        /// Customized options.
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="options"></param>
        public QueryStringGenerator(TObject obj, QueryStringGeneratorOptions options)
        {
            _source  = obj;
            _options = options;

            if (_options.SingularizeProperties)
            {
                SetupInflector();
            }
        }
示例#2
0
        /// <summary>
        /// Uses default options.
        /// </summary>
        /// <param name="source"></param>
        public QueryStringGenerator(TObject source)
        {
            _source  = source;
            _options = new QueryStringGeneratorOptions();

            if (_options.SingularizeProperties)
            {
                SetupInflector();
            }
        }