/// <summary> /// Overrides type resolver for member type /// </summary> /// <typeparam name="T"></typeparam> /// <param name="x">Inferrable</param> /// <param name="inferrer">Type inferer</param> /// <returns>Fluent</returns> public static ISupportsInferring <T> InferType <T>(this ISupportsInferring <T> x, Func <T, RtTypeName> inferrer) { x.TypeInferers.TypenameSimpleResolver = inferrer; return(x); }
/// <summary> /// Overrides type resolver for member type /// </summary> /// <typeparam name="T"></typeparam> /// <param name="x">Inferrable</param> /// <param name="inferrer">Type inferer</param> /// <returns>Fluent</returns> public static ISupportsInferring <T> InferType <T>(this ISupportsInferring <T> x, Func <T, string> inferrer) { x.TypeInferers.StringSimpleResolver = inferrer; return(x); }