TryGetCulture(string,Culture)

Method in Cultures

Summary

Gets the Culture represented by the language code in name .

public static bool TryGetCulture(string name, out Culture culture)

Parameters

Name
Description

string name

The name of the Culture to retrieve.

On return, the Culture if one was found, or a default Culture if otherwise.

Returns

true if a Culture was found; false otherwise.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.