Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------
//
// 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
- EntryIndex.cs
- ListView.cs
- AdornerPresentationContext.cs
- LOSFormatter.cs
- GridViewCommandEventArgs.cs
- InvokeHandlers.cs
- DrawingCollection.cs
- ContextMarshalException.cs
- ICspAsymmetricAlgorithm.cs
- XmlQueryType.cs
- _SslSessionsCache.cs
- WarningException.cs
- ErrorFormatter.cs
- ZipIOCentralDirectoryBlock.cs
- TableLayoutColumnStyleCollection.cs
- CookieProtection.cs
- StrongNameIdentityPermission.cs
- Repeater.cs
- WindowsSpinner.cs
- DataRecordInternal.cs
- SafeIUnknown.cs
- HttpCapabilitiesEvaluator.cs
- ScriptManagerProxy.cs
- StorageEndPropertyMapping.cs
- SchemaMapping.cs
- WebBrowserProgressChangedEventHandler.cs
- __Error.cs
- PointHitTestResult.cs
- Claim.cs
- NewArrayExpression.cs
- FtpCachePolicyElement.cs
- SharedConnectionListener.cs
- ListBindingConverter.cs
- RegexCode.cs
- Hyperlink.cs
- XamlSerializerUtil.cs
- XmlNode.cs
- XamlParser.cs
- FixedTextBuilder.cs
- MachineKeySection.cs
- RectangleHotSpot.cs
- SafeReadContext.cs
- AnnotationMap.cs
- WindowsFormsSynchronizationContext.cs
- TemplateBuilder.cs
- GridViewUpdatedEventArgs.cs
- QilReference.cs
- DetailsViewUpdatedEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- XmlSchemaInclude.cs
- XmlSchemaParticle.cs
- SqlCaseSimplifier.cs
- OSFeature.cs
- XmlDataSource.cs
- AppDomainShutdownMonitor.cs
- TextElement.cs
- BaseTransportHeaders.cs
- OneToOneMappingSerializer.cs
- figurelength.cs
- PeerTransportElement.cs
- AnnotationResource.cs
- SettingsBase.cs
- SafeProcessHandle.cs
- SafeCoTaskMem.cs
- X509RecipientCertificateClientElement.cs
- MemberRelationshipService.cs
- SchemaMapping.cs
- CryptoHandle.cs
- CollectionViewProxy.cs
- CustomWebEventKey.cs
- DynamicFilter.cs
- EditorZoneBase.cs
- XmlDomTextWriter.cs
- CompiledAction.cs
- _AcceptOverlappedAsyncResult.cs
- WindowExtensionMethods.cs
- DataGridViewRowCollection.cs
- Properties.cs
- DiscoveryDocumentLinksPattern.cs
- Scene3D.cs
- XMLDiffLoader.cs
- TimeoutValidationAttribute.cs
- WaitHandleCannotBeOpenedException.cs
- ColorMatrix.cs
- InfoCardRSACryptoProvider.cs
- DefaultPropertyAttribute.cs
- DataTableMappingCollection.cs
- DbInsertCommandTree.cs
- MaterialCollection.cs
- FeatureSupport.cs
- EpmContentSerializerBase.cs
- ScriptControlDescriptor.cs
- SystemException.cs
- Int16Animation.cs
- EncoderNLS.cs
- XmlSchemaObjectTable.cs
- ListViewItemEventArgs.cs
- PTUtility.cs
- DBConnection.cs
- SlotInfo.cs