/// <summary> /// Set the converter used to parse the current member /// </summary> /// <typeparam name="TModel"></typeparam> /// <param name="fluent"></param> /// <param name="typeConverter"></param> /// <returns></returns> public static FluentMemberBindingConfiguration <TModel> ParsesArgumentWith <TModel>(this FluentMemberBindingConfiguration <TModel> fluent, Func <string, object> typeConverter) { return(fluent.ParsesArgumentWith(new LambdaArgsTypeConverter(typeConverter))); }
/// <summary> /// Set the converter used to parse the current member /// </summary> /// <typeparam name="TArgsTypeConverter"></typeparam> /// <typeparam name="TModel"></typeparam> /// <param name="fluent"></param> /// <returns></returns> public static FluentMemberBindingConfiguration <TModel> ParsesArgumentWith <TArgsTypeConverter, TModel>(this FluentMemberBindingConfiguration <TModel> fluent) where TArgsTypeConverter : IArgsTypeConverter, new() { return(fluent.ParsesArgumentWith(new ArgsTypeConverter(fluent.MemberType, new TArgsTypeConverter()))); }
/// <summary> /// Set the converter used to parse the current member /// </summary> /// <typeparam name="TModel"></typeparam> /// <param name="fluent"></param> /// <param name="typeConverter"></param> /// <returns></returns> public static FluentMemberBindingConfiguration <TModel> ParsesArgumentWith <TModel>(this FluentMemberBindingConfiguration <TModel> fluent, IArgsTypeConverter typeConverter) { return(fluent.ParsesArgumentWith(new ArgsTypeConverter(fluent.MemberType, typeConverter))); }