forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetCultureCommand.cs
More file actions
26 lines (22 loc) · 877 Bytes
/
Copy pathGetCultureCommand.cs
File metadata and controls
26 lines (22 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
using System.Management.Automation;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// Returns the thread's current culture.
/// </summary>
[Cmdlet(VerbsCommon.Get, "Culture", HelpUri = "http://go.microsoft.com/fwlink/?LinkID=113312")]
[OutputType(typeof(System.Globalization.CultureInfo))]
public sealed class GetCultureCommand : PSCmdlet
{
/// <summary>
/// Output the current Culture info object
/// </summary>
protected override void BeginProcessing()
{
WriteObject(Host.CurrentCulture);
} // EndProcessing
} // GetCultureCommand
} // Microsoft.PowerShell.Commands