/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/engine/CultureVariable.cs
59 строк
2 KB
Steve Lee
Update copyright notice to latest guidance (#12190)
24 мар 2020, 21:08
Не верифицирован
24 мар 2020, 21:08
b7cb335
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace System.Management.Automation { /// <summary> /// A variable that represents $PSCulture. /// </summary> internal class PSCultureVariable : PSVariable { /// <summary> /// Constructs an instance of the variable. /// </summary> internal PSCultureVariable() : base(SpecialVariables.PSCulture, true, ScopedItemOptions.ReadOnly | ScopedItemOptions.AllScope, RunspaceInit.DollarPSCultureDescription) { } /// <summary> /// Gets or sets the value of the variable. /// </summary> public override object Value { get { DebuggerCheckVariableRead(); return System.Threading.Thread.CurrentThread.CurrentCulture.Name; } } } /// <summary> /// A variable that represents $PSUICulture. /// </summary> internal class PSUICultureVariable : PSVariable { /// <summary> /// Constructs an instance of the variable. /// </summary> internal PSUICultureVariable() : base(SpecialVariables.PSUICulture, true, ScopedItemOptions.ReadOnly | ScopedItemOptions.AllScope, RunspaceInit.DollarPSUICultureDescription) { } /// <summary> /// Gets or sets the value of the variable. /// </summary> public override object Value { get { DebuggerCheckVariableRead(); return System.Threading.Thread.CurrentThread.CurrentUICulture.Name; } } } }