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
- PropertyRef.cs
- SourceFilter.cs
- ToolStripSeparator.cs
- HttpHandlerAction.cs
- DataGridViewTextBoxColumn.cs
- SettingsAttributeDictionary.cs
- DefaultProxySection.cs
- ColorMap.cs
- UInt32Converter.cs
- KeyValueConfigurationElement.cs
- DataGridViewImageCell.cs
- CompilerErrorCollection.cs
- MgmtConfigurationRecord.cs
- XmlTypeAttribute.cs
- PageOutputColor.cs
- ClientConvert.cs
- ToolStrip.cs
- InfoCardKeyedHashAlgorithm.cs
- ImageConverter.cs
- TypeUnloadedException.cs
- WindowsAltTab.cs
- CommandValueSerializer.cs
- ZipIOExtraField.cs
- UserControlAutomationPeer.cs
- PenCursorManager.cs
- RuntimeArgumentHandle.cs
- SynchronizedReadOnlyCollection.cs
- InitialServerConnectionReader.cs
- EnvelopedSignatureTransform.cs
- QueryStringParameter.cs
- AsymmetricSignatureFormatter.cs
- VariableElement.cs
- CmsInterop.cs
- WSFederationHttpSecurity.cs
- VBIdentifierNameEditor.cs
- TextRunTypographyProperties.cs
- ToolStripManager.cs
- SynchronizedDispatch.cs
- ListViewPagedDataSource.cs
- AttributeCollection.cs
- VirtualizedItemPattern.cs
- XmlSignificantWhitespace.cs
- Attributes.cs
- Descriptor.cs
- DeriveBytes.cs
- IdnElement.cs
- WindowsToolbarAsMenu.cs
- HttpResponseInternalWrapper.cs
- ReadWriteSpinLock.cs
- MenuAutomationPeer.cs
- ExceptionNotification.cs
- AnnouncementEndpointElement.cs
- TreeView.cs
- Attributes.cs
- DataKey.cs
- StringInfo.cs
- TextAnchor.cs
- RuntimeCompatibilityAttribute.cs
- SqlCaseSimplifier.cs
- ReadOnlyDataSourceView.cs
- ParameterToken.cs
- ArrayConverter.cs
- UnmanagedBitmapWrapper.cs
- AsnEncodedData.cs
- validation.cs
- ProxyGenerator.cs
- XmlNamespaceDeclarationsAttribute.cs
- ConstrainedGroup.cs
- Stack.cs
- MsmqIntegrationElement.cs
- DataRelation.cs
- PageRanges.cs
- EventLogConfiguration.cs
- Variant.cs
- SuppressIldasmAttribute.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Activity.cs
- InstallerTypeAttribute.cs
- Highlights.cs
- ImageList.cs
- ParagraphResult.cs
- KnownTypesProvider.cs
- EventLogReader.cs
- TransactionContextManager.cs
- SpanIndex.cs
- FixedSOMLineCollection.cs
- IdnMapping.cs
- ScriptingProfileServiceSection.cs
- PropertyDescriptorCollection.cs
- ByteAnimationUsingKeyFrames.cs
- MessageFormatterConverter.cs
- UndoEngine.cs
- DurationConverter.cs
- HttpModuleAction.cs
- ApplyImportsAction.cs
- HGlobalSafeHandle.cs
- StagingAreaInputItem.cs
- CommandConverter.cs
- ADMembershipUser.cs
- XPathAncestorQuery.cs