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
- XmlResolver.cs
- PrinterResolution.cs
- Line.cs
- PhysicalAddress.cs
- ToolTipService.cs
- XmlTypeMapping.cs
- ProviderIncompatibleException.cs
- ExtensionElementCollection.cs
- httpstaticobjectscollection.cs
- ValidatingReaderNodeData.cs
- TaskResultSetter.cs
- ScriptComponentDescriptor.cs
- ProcessInfo.cs
- RevocationPoint.cs
- BooleanConverter.cs
- HttpCapabilitiesBase.cs
- HMACSHA256.cs
- MessageQueueInstaller.cs
- WebPartVerbsEventArgs.cs
- XsdBuilder.cs
- FrameworkElementAutomationPeer.cs
- FrameworkObject.cs
- PermissionSetEnumerator.cs
- UIntPtr.cs
- OracleInternalConnection.cs
- SqlGatherProducedAliases.cs
- SafeNativeMethods.cs
- TextRangeSerialization.cs
- SpellerHighlightLayer.cs
- PropertyEntry.cs
- XPathPatternParser.cs
- ObjectViewEntityCollectionData.cs
- EntityDataSourceStatementEditorForm.cs
- CookieProtection.cs
- Condition.cs
- EmulateRecognizeCompletedEventArgs.cs
- UserPersonalizationStateInfo.cs
- MetafileHeaderEmf.cs
- OdbcStatementHandle.cs
- ModuleBuilderData.cs
- Int32EqualityComparer.cs
- PolyQuadraticBezierSegment.cs
- PropertyGridCommands.cs
- X509CertificateCollection.cs
- ChtmlFormAdapter.cs
- RegexBoyerMoore.cs
- ProgressBarHighlightConverter.cs
- ColumnTypeConverter.cs
- GraphicsPathIterator.cs
- ListViewPagedDataSource.cs
- DateTime.cs
- PipeSecurity.cs
- Int64AnimationBase.cs
- StateValidator.cs
- KnownColorTable.cs
- HtmlControl.cs
- RelationshipWrapper.cs
- UpdateRecord.cs
- KerberosSecurityTokenProvider.cs
- DeclarativeCatalogPartDesigner.cs
- ColumnCollection.cs
- sqlmetadatafactory.cs
- FacetDescription.cs
- IISMapPath.cs
- MultiPageTextView.cs
- NativeMethods.cs
- XmlNamespaceDeclarationsAttribute.cs
- WebPartRestoreVerb.cs
- TypeConstant.cs
- IMembershipProvider.cs
- IPipelineRuntime.cs
- EnvironmentPermission.cs
- ProviderConnectionPointCollection.cs
- SHA1CryptoServiceProvider.cs
- FormCollection.cs
- DbDataReader.cs
- DesignerContextDescriptor.cs
- ValidationSummary.cs
- OciHandle.cs
- Transform3D.cs
- PassportAuthenticationModule.cs
- MergeFailedEvent.cs
- OpCopier.cs
- ExtenderProviderService.cs
- WindowsListViewItemCheckBox.cs
- EntityCommandDefinition.cs
- BinaryParser.cs
- CompareInfo.cs
- ScrollItemProviderWrapper.cs
- DefinitionBase.cs
- ControlIdConverter.cs
- ProtocolsConfiguration.cs
- UnauthorizedAccessException.cs
- SessionIDManager.cs
- IdentityValidationException.cs
- SystemParameters.cs
- IChannel.cs
- SoapExtensionReflector.cs
- TextElementEnumerator.cs
- ActionFrame.cs