12 writes to CurrentCulture
mscorlib (1)
system\globalization\cultureinfo.cs (1)
756Thread.CurrentThread.CurrentCulture = value;
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpTransportManager.cs (1)
256currentThread.CurrentCulture = data.cultureInfo;
System.Web (9)
Hosting\HostingEnvironment.cs (2)
1822Thread.CurrentThread.CurrentCulture = culture; 1834Thread.CurrentThread.CurrentCulture = _savedCulture;
HttpRuntime.cs (1)
706Thread.CurrentThread.CurrentCulture = cultureInfo;
State\SessionStateContainer.cs (1)
176set { Thread.CurrentThread.CurrentCulture = HttpServerUtility.CreateReadOnlyCultureInfo(value); }
UI\Page.cs (3)
3873Thread.CurrentThread.CurrentCulture = newCulture; 3891Thread.CurrentThread.CurrentCulture = newCulture; 4394currentThread.CurrentCulture = currentCulture;
UI\TemplateParser.cs (2)
682currentThread.CurrentCulture = CultureInfo.InvariantCulture; 694currentThread.CurrentCulture = prevCulture;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Application.cs (1)
325Thread.CurrentThread.CurrentCulture = value;
48 references to CurrentCulture
mscorlib (7)
system\convert.cs (2)
203return ChangeType(value, typeCode, Thread.CurrentThread.CurrentCulture); 322return ChangeType(value, conversionType, Thread.CurrentThread.CurrentCulture);
system\globalization\cultureinfo.cs (1)
718return Thread.CurrentThread.CurrentCulture;
system\globalization\datetimeformatinfo.cs (1)
519System.Globalization.CultureInfo culture = System.Threading.Thread.CurrentThread.CurrentCulture;
system\globalization\datetimeparse.cs (1)
4383m_info = Thread.CurrentThread.CurrentCulture.CompareInfo;
system\globalization\numberformatinfo.cs (1)
467System.Globalization.CultureInfo culture = System.Threading.Thread.CurrentThread.CurrentCulture;
system\io\textwriter.cs (1)
119return Thread.CurrentThread.CurrentCulture;
PresentationFramework (8)
src\Framework\System\Windows\Controls\SpellCheck.cs (1)
156new FrameworkPropertyMetadata(Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName == "de" ? SpellingReform.Postreform : SpellingReform.PreAndPostreform,
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
452HRESULT hr = scriptObjectEx.GetIDsOfNames(ref guid, names, 1, Thread.CurrentThread.CurrentCulture.LCID, dispids); 481Thread.CurrentThread.CurrentCulture.LCID,
src\Framework\System\Windows\Documents\Speller.cs (1)
56Thread.CurrentThread.CurrentCulture;
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
85_defaultCulture = InputLanguageManager.Current?.CurrentInputLanguage ?? Thread.CurrentThread.CurrentCulture;
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (3)
615HRESULT hr = _scriptObject.GetIDsOfNames(ref guid, names, dispids.Length, Thread.CurrentThread.CurrentCulture.LCID, dispids); 667return _scriptObjectEx.InvokeEx(dispid, Thread.CurrentThread.CurrentCulture.LCID, flags, dp, out result, exInfo, BrowserInteropHelper.HostHtmlDocumentServiceProvider); 672return _scriptObject.Invoke(dispid, ref guid, Thread.CurrentThread.CurrentCulture.LCID, flags, dp, out result, exInfo, null);
System (1)
compmod\microsoft\win32\SystemEvents.cs (1)
489throw new ArgumentException(SR.GetString(SR.InvalidLowBoundArgument, "interval", interval.ToString(System.Threading.Thread.CurrentThread.CurrentCulture), "0"));
System.Data (1)
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
356DateTimeFormatInfo dtfi = (DateTimeFormatInfo)(Thread.CurrentThread.CurrentCulture.GetFormat(typeof(DateTimeFormatInfo)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpTransportManager.cs (1)
254if (currentThread.CurrentCulture != data.cultureInfo)
System.Web (18)
Hosting\HostingEnvironment.cs (2)
1818CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; 1833if (_savedCulture != null && _savedCulture != Thread.CurrentThread.CurrentCulture) {
HttpApplication.cs (3)
2048_savedAppLevelCulture = Thread.CurrentThread.CurrentCulture; 2051if (culture != null && culture != Thread.CurrentThread.CurrentCulture) { 2061CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
HttpRuntime.cs (1)
626CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture;
State\SessionStateContainer.cs (1)
175get { return Thread.CurrentThread.CurrentCulture.LCID; }
ThreadContext.cs (4)
253CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; 322_originalThreadCurrentCulture = Thread.CurrentThread.CurrentCulture; 325if (culture != null && culture != Thread.CurrentThread.CurrentCulture) { 338HttpContext.DynamicCulture = Thread.CurrentThread.CurrentCulture;
UI\BatchParser.cs (1)
48CultureInfo prevCulture = currentThread.CurrentCulture;
UI\Page.cs (4)
3877get { return Thread.CurrentThread.CurrentCulture.DisplayName; } 3895get { return Thread.CurrentThread.CurrentCulture.LCID; } 4410CultureInfo prevCulture = currentThread.CurrentCulture; 4510if (prevCulture != currentThread.CurrentCulture || prevUICulture != currentThread.CurrentUICulture) {
UI\TemplateParser.cs (2)
680CultureInfo prevCulture = currentThread.CurrentCulture; 693System.Web.Util.Debug.Trace("Culture", "After parsing, culture is " + currentThread.CurrentCulture.DisplayName);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Application.cs (1)
322return Thread.CurrentThread.CurrentCulture;
winforms\Managed\System\WinForms\AxHost.cs (1)
2444return Thread.CurrentThread.CurrentCulture.LCID;
System.Workflow.Activities (1)
LocalService\ExternalDataExchangeService.cs (1)
92String.Format(Thread.CurrentThread.CurrentCulture, SR.GetString(SR.Error_UnknownConfigurationParameter), key), "parameters");
System.Workflow.Runtime (8)
Hosting\DefaultWorkflowSchedulerService.cs (2)
69throw new ArgumentException(String.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.UnknownConfigurationParameter, "null")); 72throw new ArgumentException(String.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.UnknownConfigurationParameter, key));
Hosting\ManualWorkflowSchedulerService.cs (2)
87throw new ArgumentException(String.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.UnknownConfigurationParameter, "null")); 90throw new ArgumentException(String.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.UnknownConfigurationParameter, key));
Hosting\SqlWorkflowPersistenceService.cs (3)
470Exception e = new InvalidOperationException(string.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.InstanceNotFound, instanceStateId)); 527string.Format(Thread.CurrentThread.CurrentCulture, 792String.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.UnknownConfigurationParameter, key), "parameters");
WorkflowRuntime.cs (1)
607throw new InvalidOperationException(string.Format(Thread.CurrentThread.CurrentCulture, ExecutionStringManager.InstanceNotFound, instanceId));
System.Xml (1)
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
134this.cinfo = System.Threading.Thread.CurrentThread.CurrentCulture;