FluentValidation.Tests.CultureScope.CultureScope C# (CSharp) Method

CultureScope() public method

public CultureScope ( CultureInfo culture ) : System
culture System.Globalization.CultureInfo
return System
		public CultureScope(CultureInfo culture) {
#if !CoreCLR
			_originalCulture = Thread.CurrentThread.CurrentCulture;
			_originalUiCulture = Thread.CurrentThread.CurrentUICulture;

			Thread.CurrentThread.CurrentCulture = culture;
			Thread.CurrentThread.CurrentUICulture = culture;
#else
			_originalCulture = CultureInfo.CurrentCulture;
			_originalUiCulture = CultureInfo.CurrentUICulture;

			CultureInfo.CurrentCulture = culture;
			CultureInfo.CurrentUICulture = culture;
#endif
		}

Same methods

CultureScope::CultureScope ( string culture ) : System