/// <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(); } }
/// <summary> /// Uses default options. /// </summary> /// <param name="source"></param> public QueryStringGenerator(TObject source) { _source = source; _options = new QueryStringGeneratorOptions(); if (_options.SingularizeProperties) { SetupInflector(); } }