/// <summary> /// Parse a filter string to a custom type /// </summary> /// <typeparam name="T"></typeparam> /// <param name="filter"></param> /// <param name="converter"></param> /// <param name="operatorOverrides"></param> /// <returns></returns> public T ParseAs <T>(string filter, IFilterConverter <T> converter, Dictionary <OperatorType, string> operatorOverrides) where T : class { return(converter.ConvertTo(this.Parse(filter, operatorOverrides))); }
/// <summary> /// Parse a filter string to a custom type /// </summary> /// <typeparam name="T"></typeparam> /// <param name="filter"></param> /// <param name="converter"></param> /// <returns></returns> public T ParseAs <T>(string filter, IFilterConverter <T> converter) where T : class { return(converter.ConvertTo(this.Parse(filter))); }