HasCultureExtensions

Contains extension methods for .

Contains extension methods for IHasCulture.

Methods

public static T Culture<T>(T obj, CultureInfo culture)

Sets the culture.

Parameters:

obj (T)
The object to set the culture for.
culture (CultureInfo)
The culture to set.

Returns:

The same instance so that multiple calls can be chained.

public static T Culture<T>(T obj, string name)

Sets the culture.

Parameters:

obj (T)
The object to set the culture for.
name (string)
The culture to set.

Returns:

The same instance so that multiple calls can be chained.

public static T Culture<T>(T obj, int culture)

Sets the culture.

Parameters:

obj (T)
The object to set the culture for.
culture (int)
The culture to set.

Returns:

The same instance so that multiple calls can be chained.