Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / MS / Internal / PlatformCulture.cs / 1 / PlatformCulture.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: PlatformCulture.cs
//
// Contents: Internal class that exposes the culture the platform is localized to.
//
// Created: 5-19-2006 Rafael Ruiz ([....])
//
//-----------------------------------------------------------------------
using System;
using System.Globalization;
using System.Windows;
using MS.Internal.WindowsBase;
namespace MS.Internal
{
///
/// Exposes the CultureInfo for the culture the platform is localized to.
///
[FriendAccessAllowed]
internal static class PlatformCulture
{
///
/// Culture the platform is localized to.
///
public static CultureInfo Value
{
get
{
// Get the UI Language from the string table
string uiLanguage = SR.Get(SRID.WPF_UILanguage);
Invariant.Assert(!string.IsNullOrEmpty(uiLanguage), "No UILanguage was specified in stringtable.");
// Return the CultureInfo for this UI language.
return new CultureInfo(uiLanguage);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JulianCalendar.cs
- TrackingDataItemValue.cs
- UrlMapping.cs
- KeyInterop.cs
- Logging.cs
- EncodingDataItem.cs
- SafeNativeMethods.cs
- ListControlConvertEventArgs.cs
- CodeMethodMap.cs
- DataMisalignedException.cs
- PartialList.cs
- ValueTable.cs
- FileDialogPermission.cs
- InputBuffer.cs
- DbParameterCollectionHelper.cs
- InternalSafeNativeMethods.cs
- TypeGeneratedEventArgs.cs
- NavigationProgressEventArgs.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- EditorZoneBase.cs
- AsyncDataRequest.cs
- StringResourceManager.cs
- DynamicResourceExtension.cs
- DecoderNLS.cs
- XmlLoader.cs
- PublisherMembershipCondition.cs
- CodeAttributeDeclarationCollection.cs
- IxmlLineInfo.cs
- TextServicesDisplayAttribute.cs
- UpdateRecord.cs
- WindowsRichEditRange.cs
- nulltextnavigator.cs
- StringSorter.cs
- TreeBuilderBamlTranslator.cs
- ServiceDescriptionReflector.cs
- CacheOutputQuery.cs
- ClientEventManager.cs
- InkCanvas.cs
- TextSpan.cs
- WebPartCollection.cs
- MaskPropertyEditor.cs
- SimpleTextLine.cs
- TreeViewImageIndexConverter.cs
- ScriptingAuthenticationServiceSection.cs
- Touch.cs
- DataControlCommands.cs
- MonthChangedEventArgs.cs
- QueryContinueDragEventArgs.cs
- TrustManager.cs
- UnsafeNativeMethodsTablet.cs
- NamedObject.cs
- COM2AboutBoxPropertyDescriptor.cs
- RawTextInputReport.cs
- MemoryMappedViewAccessor.cs
- StorageModelBuildProvider.cs
- SoapSchemaExporter.cs
- TextEditorTyping.cs
- LineBreak.cs
- CustomErrorCollection.cs
- References.cs
- ShaderEffect.cs
- DataSourceNameHandler.cs
- ContextStaticAttribute.cs
- SafeNativeMethods.cs
- ThemeInfoAttribute.cs
- Misc.cs
- HttpWriter.cs
- GeometryCollection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlSchemaGroup.cs
- DataControlExtensions.cs
- VisualProxy.cs
- DllHostedComPlusServiceHost.cs
- DateRangeEvent.cs
- TryCatch.cs
- SQLSingleStorage.cs
- NamespaceMapping.cs
- ItemAutomationPeer.cs
- SplashScreenNativeMethods.cs
- EmptyControlCollection.cs
- NavigatorOutput.cs
- SecUtil.cs
- GroupItem.cs
- ObjectQuery_EntitySqlExtensions.cs
- ByteStreamGeometryContext.cs
- WinFormsUtils.cs
- PolicyAssertionCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlSchemas.cs
- CopyNamespacesAction.cs
- COM2ExtendedBrowsingHandler.cs
- ConfigurationManagerInternal.cs
- ObjectContext.cs
- PropertyGridCommands.cs
- SqlHelper.cs
- UIAgentAsyncBeginRequest.cs
- DesignerTransactionCloseEvent.cs
- AutomationIdentifierGuids.cs
- cryptoapiTransform.cs
- OraclePermissionAttribute.cs