Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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 (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
- FacetDescriptionElement.cs
- ServiceCredentials.cs
- BlobPersonalizationState.cs
- Imaging.cs
- SHA1Managed.cs
- SqlDataSourceView.cs
- StylusTip.cs
- _LazyAsyncResult.cs
- ImageSourceValueSerializer.cs
- AspProxy.cs
- TypeToArgumentTypeConverter.cs
- TextEffectResolver.cs
- XsltContext.cs
- MailWebEventProvider.cs
- XmlChoiceIdentifierAttribute.cs
- InvalidPrinterException.cs
- WebConfigurationHost.cs
- diagnosticsswitches.cs
- VirtualDirectoryMappingCollection.cs
- Span.cs
- XmlQuerySequence.cs
- HebrewCalendar.cs
- PasswordRecovery.cs
- TypeDescriptionProviderAttribute.cs
- TransactedReceiveScope.cs
- BitVec.cs
- BamlLocalizableResourceKey.cs
- DbDataSourceEnumerator.cs
- TransactionContextValidator.cs
- WindowsGraphicsWrapper.cs
- GridViewHeaderRowPresenter.cs
- HostUtils.cs
- ErrorHandler.cs
- UriSection.cs
- SimpleFieldTemplateFactory.cs
- _Connection.cs
- PersistChildrenAttribute.cs
- DockEditor.cs
- XmlSchemaValidator.cs
- WindowProviderWrapper.cs
- BadImageFormatException.cs
- Vector3DCollection.cs
- ApplicationInfo.cs
- ObjectCache.cs
- ThreadStateException.cs
- FontTypeConverter.cs
- X509CertificateValidator.cs
- WebEvents.cs
- BooleanExpr.cs
- TimeoutTimer.cs
- RbTree.cs
- StreamGeometry.cs
- ItemsControl.cs
- IHttpResponseInternal.cs
- PrimaryKeyTypeConverter.cs
- CodeGenerator.cs
- CommonXSendMessage.cs
- TextRunCacheImp.cs
- SettingsSavedEventArgs.cs
- DeclarativeCatalogPart.cs
- UnsafeNativeMethods.cs
- COM2IDispatchConverter.cs
- ISO2022Encoding.cs
- MdImport.cs
- SafeArrayTypeMismatchException.cs
- returneventsaver.cs
- InitializerFacet.cs
- MsmqPoisonMessageException.cs
- HMAC.cs
- X509PeerCertificateElement.cs
- CellNormalizer.cs
- ZoneIdentityPermission.cs
- TransformerTypeCollection.cs
- ObjectListDesigner.cs
- ExpandCollapsePatternIdentifiers.cs
- CheckPair.cs
- VectorCollectionConverter.cs
- RemoteDebugger.cs
- WizardStepBase.cs
- CredentialCache.cs
- AnimationStorage.cs
- CompilationUtil.cs
- DataGridViewTextBoxCell.cs
- DelegatedStream.cs
- MsmqBindingFilter.cs
- ChannelTracker.cs
- ArrangedElementCollection.cs
- QueuedDeliveryRequirementsMode.cs
- PageAsyncTask.cs
- RuntimeWrappedException.cs
- ClientBuildManager.cs
- TypeHelpers.cs
- TypeInfo.cs
- RequestQueryProcessor.cs
- TreeNodeCollection.cs
- SystemUdpStatistics.cs
- SmtpFailedRecipientException.cs
- WindowShowOrOpenTracker.cs
- ResXBuildProvider.cs
- WindowProviderWrapper.cs