Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / PlatformCulture.cs / 1305600 / 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 (rruiz)
//
//-----------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- selecteditemcollection.cs
- BinaryUtilClasses.cs
- SafeViewOfFileHandle.cs
- Shared.cs
- EncodingDataItem.cs
- CurrencyWrapper.cs
- Socket.cs
- TemplateParser.cs
- MimePart.cs
- TableItemStyle.cs
- IPAddress.cs
- PersonalizationStateInfoCollection.cs
- ObjectSet.cs
- ImportCatalogPart.cs
- WebPartsPersonalizationAuthorization.cs
- CommandID.cs
- AsyncOperation.cs
- HwndAppCommandInputProvider.cs
- ServiceAuthorizationManager.cs
- RoleService.cs
- StrokeNode.cs
- StatusBarDrawItemEvent.cs
- AgileSafeNativeMemoryHandle.cs
- OleDbCommand.cs
- HttpWebRequest.cs
- ObjectView.cs
- HtmlSelect.cs
- PersonalizableAttribute.cs
- storepermission.cs
- Membership.cs
- TracePayload.cs
- XmlCharacterData.cs
- ServiceObjectContainer.cs
- RegexGroupCollection.cs
- MemberDomainMap.cs
- AddInDeploymentState.cs
- HttpBrowserCapabilitiesWrapper.cs
- MediaTimeline.cs
- BuildProviderUtils.cs
- ComEventsHelper.cs
- XomlCompiler.cs
- SafeRightsManagementQueryHandle.cs
- AuthenticationServiceManager.cs
- BaseCollection.cs
- WebConvert.cs
- DbReferenceCollection.cs
- GeneralTransform3D.cs
- HijriCalendar.cs
- NativeMethods.cs
- SBCSCodePageEncoding.cs
- WindowsRichEdit.cs
- Mapping.cs
- ImageSourceTypeConverter.cs
- FileFormatException.cs
- DrawingBrush.cs
- NetworkStream.cs
- CurrencyManager.cs
- IListConverters.cs
- LocatorBase.cs
- SocketPermission.cs
- ContainsRowNumberChecker.cs
- ObjectDataSourceFilteringEventArgs.cs
- ObjectCacheSettings.cs
- DataGridCellClipboardEventArgs.cs
- InputProcessorProfiles.cs
- ModuleBuilder.cs
- TextRangeSerialization.cs
- DesignerActionKeyboardBehavior.cs
- DiscoveryDocumentLinksPattern.cs
- JoinQueryOperator.cs
- WebPartDisplayModeCollection.cs
- Int32Rect.cs
- ComponentEditorPage.cs
- DataGridViewTextBoxCell.cs
- Helpers.cs
- X509SecurityToken.cs
- StructuralCache.cs
- StylusPlugInCollection.cs
- SoapCommonClasses.cs
- XComponentModel.cs
- CommonProperties.cs
- ProcessInfo.cs
- NavigationCommands.cs
- GridView.cs
- EDesignUtil.cs
- PrivateFontCollection.cs
- MultitargetUtil.cs
- TextTreeRootTextBlock.cs
- ItemCheckEvent.cs
- ListViewItem.cs
- GACIdentityPermission.cs
- ViewBox.cs
- RequestQueue.cs
- ValidationErrorEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- DataGridToolTip.cs
- DataGridViewSelectedColumnCollection.cs
- HttpResponseHeader.cs
- EntityCommandCompilationException.cs
- EditorAttribute.cs