Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TextRangeEditLists.cs
- SystemResourceHost.cs
- Rect3D.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HostedBindingBehavior.cs
- Model3D.cs
- TextSyndicationContentKindHelper.cs
- OverflowException.cs
- ProfileGroupSettings.cs
- DbConnectionPoolGroup.cs
- Roles.cs
- PropertyMapper.cs
- ConsoleKeyInfo.cs
- PreDigestedSignedInfo.cs
- BuildProvider.cs
- Stopwatch.cs
- Encoding.cs
- CheckoutException.cs
- VersionedStreamOwner.cs
- MetafileHeader.cs
- SHA1CryptoServiceProvider.cs
- CacheOutputQuery.cs
- dataSvcMapFileLoader.cs
- DataTable.cs
- TextServicesLoader.cs
- TabRenderer.cs
- While.cs
- IBuiltInEvidence.cs
- ValueUnavailableException.cs
- DataGridViewButtonColumn.cs
- HtmlTernaryTree.cs
- StylusPointProperty.cs
- HyperLinkColumn.cs
- UnknownWrapper.cs
- RichTextBoxConstants.cs
- RegistryConfigurationProvider.cs
- DoubleIndependentAnimationStorage.cs
- PathHelper.cs
- NameSpaceEvent.cs
- DbConvert.cs
- ImageDesigner.cs
- ProviderUtil.cs
- BindingCollectionElement.cs
- OleDbParameterCollection.cs
- RotateTransform.cs
- GroupStyle.cs
- AuthenticatedStream.cs
- ConstNode.cs
- DependencyObjectProvider.cs
- EventlogProvider.cs
- FixedSOMPageElement.cs
- ReferenceAssemblyAttribute.cs
- DrawingContext.cs
- ScopedMessagePartSpecification.cs
- SiteMapProvider.cs
- StrongNameKeyPair.cs
- DbRetry.cs
- StreamUpdate.cs
- HttpProcessUtility.cs
- ContentIterators.cs
- BufferedWebEventProvider.cs
- ListControlConvertEventArgs.cs
- ParallelTimeline.cs
- StylusPointCollection.cs
- WebPartCollection.cs
- AuthenticationException.cs
- TextParagraphProperties.cs
- Tag.cs
- Rect3D.cs
- EntityCodeGenerator.cs
- HelloOperationAsyncResult.cs
- ExpandSegment.cs
- HiddenField.cs
- ParagraphResult.cs
- ObjectListCommandEventArgs.cs
- XmlCountingReader.cs
- MailBnfHelper.cs
- ResXBuildProvider.cs
- XPathNavigator.cs
- XmlWriterTraceListener.cs
- PermissionListSet.cs
- CheckedPointers.cs
- ConsoleEntryPoint.cs
- GridPattern.cs
- Memoizer.cs
- MultiDataTrigger.cs
- WebPartMenuStyle.cs
- TabRenderer.cs
- BrowserCapabilitiesFactoryBase.cs
- PopupRootAutomationPeer.cs
- HandlerBase.cs
- HistoryEventArgs.cs
- XpsFilter.cs
- BodyGlyph.cs
- ComEventsMethod.cs
- SchemaImporterExtension.cs
- PersistChildrenAttribute.cs
- MediaScriptCommandRoutedEventArgs.cs
- StrongNamePublicKeyBlob.cs
- WinFormsSpinner.cs