Table of Contents

Class CultureHelpers

Namespace
Acuit.Pinpoint.Common
Assembly
Acuit.Pinpoint.Common.dll

Culture helper methods.

public static class CultureHelpers
Inheritance
CultureHelpers
Inherited Members

Methods

SetCurrentThreadUICulture(string)

Sets the CurrentUICulture of the current thread to the specified culture.

public static void SetCurrentThreadUICulture(string cultureName)

Parameters

cultureName string

The culture name of the culture to which to set the current thread's CurrentUICulture. If this is null or an empty string, the culture will be reset to that of the default Windows language.

Remarks

If cultureName is not a valid culture name, then no change will occur.

TryCreateCultureInfo(string)

Try to creates a CultureInfo for a culture name. If the name is invalid, returns null without throwing an exception.

[Obsolete("This is deprecated and will be removed in a future version.")]
public static CultureInfo TryCreateCultureInfo(string cultureName)

Parameters

cultureName string

The culture name.

Returns

CultureInfo

The CultureInfo if successful, or null if the name is invalid.