private MappingConfigurator <TSource, TTarget> UseNameSuffixes(params string[] suffixes) { MapperContext.Naming.Add(ConfiguredNamingPattern.Suffixes(suffixes, ConfigInfo)); return(this); }
/// <summary> /// Expect members of all source and target types to potentially have any of the given name <paramref name="suffixes"/>. /// Source and target members will be matched as if the suffixes are absent. /// </summary> /// <param name="suffixes">The suffixes to ignore when matching source and target members.</param> /// <returns> /// An <see cref="IGlobalMappingSettings"/>, with which to globally configure other mapping aspects. /// </returns> public IGlobalMappingSettings UseNameSuffixes(params string[] suffixes) { MapperContext.Naming.Add(ConfiguredNamingPattern.Suffixes(suffixes, GlobalConfigInfo)); return(this); }