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
- webeventbuffer.cs
- SchemaImporter.cs
- UidManager.cs
- ViewValidator.cs
- XmlDataSource.cs
- Drawing.cs
- CacheHelper.cs
- XmlBinaryReader.cs
- HttpListenerResponse.cs
- CookieParameter.cs
- StylusButtonEventArgs.cs
- TdsValueSetter.cs
- EntityDataSourceSelectedEventArgs.cs
- DataGridView.cs
- HitTestWithPointDrawingContextWalker.cs
- HwndHost.cs
- WSTrustFeb2005.cs
- OdbcConnectionStringbuilder.cs
- DesignOnlyAttribute.cs
- X509Certificate2Collection.cs
- InfoCardTraceRecord.cs
- ToolStripSplitStackLayout.cs
- AbsoluteQuery.cs
- StringArrayConverter.cs
- FileUtil.cs
- XmlNodeList.cs
- DataGridViewAdvancedBorderStyle.cs
- HttpResponseInternalWrapper.cs
- InvokePattern.cs
- DBCSCodePageEncoding.cs
- XmlUtil.cs
- DynamicControl.cs
- DesignerTransaction.cs
- Translator.cs
- TextHintingModeValidation.cs
- ZipFileInfoCollection.cs
- GridProviderWrapper.cs
- LinqExpressionNormalizer.cs
- SystemTcpConnection.cs
- SiteMapProvider.cs
- DelegatedStream.cs
- ThreadAttributes.cs
- VisualSerializer.cs
- OleDbCommandBuilder.cs
- Itemizer.cs
- DispatcherTimer.cs
- URLString.cs
- InterleavedZipPartStream.cs
- WeakRefEnumerator.cs
- NumericPagerField.cs
- MultiTrigger.cs
- XsdCachingReader.cs
- BaseTemplatedMobileComponentEditor.cs
- Preprocessor.cs
- PrintSchema.cs
- OverlappedContext.cs
- DataGridViewRow.cs
- XPathDescendantIterator.cs
- RadioButtonRenderer.cs
- HttpModuleActionCollection.cs
- InternalCache.cs
- XsltException.cs
- XmlSchemaComplexType.cs
- ToolStripSeparator.cs
- ProfileModule.cs
- LocalBuilder.cs
- TokenFactoryFactory.cs
- WebDescriptionAttribute.cs
- TextTreeRootTextBlock.cs
- TextServicesCompartmentContext.cs
- WindowsListViewItemCheckBox.cs
- HeaderUtility.cs
- Tablet.cs
- ObsoleteAttribute.cs
- DrawingGroup.cs
- QilList.cs
- StateValidator.cs
- TabPage.cs
- SiteMapSection.cs
- documentsequencetextview.cs
- RegistryConfigurationProvider.cs
- SchemaImporterExtensionsSection.cs
- AutoSizeToolBoxItem.cs
- XmlReflectionMember.cs
- PageRequestManager.cs
- ViewgenGatekeeper.cs
- SymmetricAlgorithm.cs
- InkPresenter.cs
- WhitespaceRule.cs
- ListItemParagraph.cs
- Msec.cs
- MatchNoneMessageFilter.cs
- Configuration.cs
- EntityProxyTypeInfo.cs
- PathSegmentCollection.cs
- Fonts.cs
- ComponentTray.cs
- DataObjectFieldAttribute.cs
- GlyphCollection.cs
- InternalConfigRoot.cs