Ejemplo n.º 1
0
        /// <summary>
        /// Parser the given value, then formats it with the given arguments using the current culture.
        /// </summary>
        public static string Format(this IStringParser stringParser, string value, params object[] args)
        {
            if (stringParser is null)
            {
                throw new ArgumentNullException(nameof(stringParser));
            }

            return(stringParser.Format(CultureInfo.CurrentCulture, value, args));
        }