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
- ResourceReferenceKeyNotFoundException.cs
- DataServiceException.cs
- ProvidersHelper.cs
- WebCategoryAttribute.cs
- RoleManagerModule.cs
- WSFederationHttpSecurityElement.cs
- Span.cs
- PassportAuthenticationModule.cs
- Parsers.cs
- HttpProcessUtility.cs
- unsafeIndexingFilterStream.cs
- MetadataArtifactLoaderCompositeResource.cs
- AncestorChangedEventArgs.cs
- DataServiceEntityAttribute.cs
- LocatorPartList.cs
- ServiceDescriptionSerializer.cs
- TreeBuilder.cs
- RuleSettings.cs
- RuntimeHelpers.cs
- XmlSiteMapProvider.cs
- ControlTemplate.cs
- DLinqAssociationProvider.cs
- NullableLongSumAggregationOperator.cs
- TextWriterTraceListener.cs
- safesecurityhelperavalon.cs
- DelegatingStream.cs
- DataControlFieldCell.cs
- _CommandStream.cs
- CatalogPartCollection.cs
- TextFindEngine.cs
- Partitioner.cs
- HttpCacheParams.cs
- OverrideMode.cs
- XmlRawWriterWrapper.cs
- _LazyAsyncResult.cs
- XmlAttributeCollection.cs
- CharConverter.cs
- AppSecurityManager.cs
- sqlcontext.cs
- LogEntry.cs
- XmlIncludeAttribute.cs
- ObjectDataSourceDisposingEventArgs.cs
- WebBrowserPermission.cs
- Decimal.cs
- Membership.cs
- XLinq.cs
- WmpBitmapDecoder.cs
- Assembly.cs
- TextServicesDisplayAttributePropertyRanges.cs
- CreateSequenceResponse.cs
- Rectangle.cs
- JpegBitmapDecoder.cs
- LinkedResourceCollection.cs
- DataListComponentEditor.cs
- LifetimeServices.cs
- followingsibling.cs
- HtmlElementCollection.cs
- IProducerConsumerCollection.cs
- DbCommandTree.cs
- NamespaceList.cs
- CodeLabeledStatement.cs
- HtmlLink.cs
- DashStyle.cs
- ResourceProviderFactory.cs
- SetState.cs
- GenericTypeParameterConverter.cs
- MenuItemCollection.cs
- HtmlButton.cs
- FixedBufferAttribute.cs
- securestring.cs
- KeyBinding.cs
- FramingDecoders.cs
- MonthChangedEventArgs.cs
- QuaternionIndependentAnimationStorage.cs
- DbConnectionPoolIdentity.cs
- BamlLocalizableResource.cs
- XmlRawWriter.cs
- NonSerializedAttribute.cs
- MailSettingsSection.cs
- XappLauncher.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DecimalStorage.cs
- DateTimeConverter2.cs
- CapabilitiesAssignment.cs
- InteropAutomationProvider.cs
- CapabilitiesRule.cs
- WorkflowItemPresenter.cs
- ArgumentNullException.cs
- EventItfInfo.cs
- ClientBuildManager.cs
- TouchesCapturedWithinProperty.cs
- HitTestParameters.cs
- PersistenceContextEnlistment.cs
- XmlCharacterData.cs
- ClrPerspective.cs
- GlyphingCache.cs
- ObjectDataSourceEventArgs.cs
- PointHitTestResult.cs
- CustomDictionarySources.cs
- XmlWriterTraceListener.cs