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
- SolidBrush.cs
- PropertyChangeTracker.cs
- EventMappingSettingsCollection.cs
- VirtualPathProvider.cs
- TabControlEvent.cs
- KeyedCollection.cs
- ExtensionSimplifierMarkupObject.cs
- MobilePage.cs
- BitmapScalingModeValidation.cs
- SingleConverter.cs
- ObjectDataSourceStatusEventArgs.cs
- SerializationSectionGroup.cs
- SplitterDesigner.cs
- coordinatorscratchpad.cs
- ProfileSection.cs
- KeyToListMap.cs
- ConfigurationManagerInternalFactory.cs
- StateManagedCollection.cs
- CompilerResults.cs
- VersionedStream.cs
- Separator.cs
- ValidationEventArgs.cs
- StaticExtensionConverter.cs
- CodeExpressionStatement.cs
- CatalogPartChrome.cs
- FormsAuthenticationUserCollection.cs
- MetadataPropertyvalue.cs
- OracleDateTime.cs
- HMACSHA384.cs
- SharedStream.cs
- SimpleRecyclingCache.cs
- ZeroOpNode.cs
- FillBehavior.cs
- MissingManifestResourceException.cs
- ResolveMatchesCD1.cs
- cookiecontainer.cs
- GlyphsSerializer.cs
- EventLogTraceListener.cs
- Bits.cs
- VisualState.cs
- ProjectionPlan.cs
- Subset.cs
- BlobPersonalizationState.cs
- ButtonChrome.cs
- ExtractCollection.cs
- DecryptRequest.cs
- ImageAnimator.cs
- AddDataControlFieldDialog.cs
- ListCollectionView.cs
- Effect.cs
- LocalBuilder.cs
- Timer.cs
- StringDictionary.cs
- Serializer.cs
- PropertyGroupDescription.cs
- SchemaLookupTable.cs
- TextTrailingWordEllipsis.cs
- DateTimeConverter.cs
- RectAnimationBase.cs
- CollectionBuilder.cs
- TableItemStyle.cs
- ProxyWebPart.cs
- InputEventArgs.cs
- ColumnPropertiesGroup.cs
- SafeFileMappingHandle.cs
- AudioFormatConverter.cs
- StringValidatorAttribute.cs
- UnitySerializationHolder.cs
- UrlPath.cs
- TextEndOfLine.cs
- EntityContainerRelationshipSet.cs
- ManagementQuery.cs
- TextDecorationCollection.cs
- SuppressMessageAttribute.cs
- PopupRootAutomationPeer.cs
- DynamicMethod.cs
- ByteStreamGeometryContext.cs
- COM2ExtendedBrowsingHandler.cs
- StorageRoot.cs
- PageThemeParser.cs
- TextElement.cs
- Property.cs
- SimpleFileLog.cs
- WeakReference.cs
- WebBrowserBase.cs
- ExpressionPrefixAttribute.cs
- UrlAuthorizationModule.cs
- ExecutionEngineException.cs
- RawStylusInputCustomDataList.cs
- OleStrCAMarshaler.cs
- SplitContainer.cs
- entitydatasourceentitysetnameconverter.cs
- WizardForm.cs
- ContextBase.cs
- TextCollapsingProperties.cs
- EventLogSession.cs
- AutomationPatternInfo.cs
- XmlAtomicValue.cs
- Stylesheet.cs
- UrlEncodedParameterWriter.cs