Skip to main content
Version: 2.10.1

Humanizer.StringExtensions

StringExtensions Class

Extension methods for String type.

public static class StringExtensions

Inheritance System.Object → StringExtensions

Methods

StringExtensions.FormatWith(this string, object[]) Method

Extension method to format string with passed arguments. Current thread's current culture is used

public static string FormatWith(this string format, params object[] args);

Parameters

format System.String

string format

args System.Object[]

arguments

Returns

System.String

StringExtensions.FormatWith(this string, IFormatProvider, object[]) Method

Extension method to format string with passed arguments using specified format provider (i.e. CultureInfo)

public static string FormatWith(this string format, System.IFormatProvider provider, params object[] args);

Parameters

format System.String

string format

provider System.IFormatProvider

An object that supplies culture-specific formatting information

args System.Object[]

arguments

Returns

System.String