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
- NamespaceTable.cs
- UInt32.cs
- CommonRemoteMemoryBlock.cs
- AddIn.cs
- Table.cs
- FixedPosition.cs
- MarkupCompilePass1.cs
- WebProxyScriptElement.cs
- AmbientProperties.cs
- AndMessageFilterTable.cs
- ListViewItemEventArgs.cs
- XmlSchemaDocumentation.cs
- XamlRtfConverter.cs
- HtmlTable.cs
- AttributeQuery.cs
- DictionaryMarkupSerializer.cs
- TextRangeSerialization.cs
- AccessViolationException.cs
- ObjectAssociationEndMapping.cs
- FilterableData.cs
- WriteLineDesigner.xaml.cs
- SqlRewriteScalarSubqueries.cs
- TranslateTransform3D.cs
- SqlClientPermission.cs
- Sql8ConformanceChecker.cs
- LabelAutomationPeer.cs
- WebPartsPersonalization.cs
- InputLanguageCollection.cs
- TextHintingModeValidation.cs
- XmlSchemaAny.cs
- RC2.cs
- TextTreeFixupNode.cs
- SocketSettings.cs
- HitTestParameters.cs
- unsafeIndexingFilterStream.cs
- SemanticAnalyzer.cs
- TransformerTypeCollection.cs
- CheckBoxStandardAdapter.cs
- HttpApplication.cs
- XmlSchemaSimpleContentRestriction.cs
- PackWebResponse.cs
- UIElementIsland.cs
- XmlSchemaImport.cs
- uribuilder.cs
- SymLanguageVendor.cs
- CompatibleComparer.cs
- EventArgs.cs
- EventEntry.cs
- EdmConstants.cs
- ReadOnlyObservableCollection.cs
- ConsumerConnectionPointCollection.cs
- StorageScalarPropertyMapping.cs
- SecurityUtils.cs
- Regex.cs
- TextTreePropertyUndoUnit.cs
- AppDomainManager.cs
- FixUpCollection.cs
- DataSpaceManager.cs
- FolderNameEditor.cs
- DeploymentSectionCache.cs
- DateTimeFormat.cs
- FacetDescriptionElement.cs
- XmlSchemaAttributeGroup.cs
- DataRelation.cs
- DbgUtil.cs
- ApplicationContext.cs
- TransformerConfigurationWizardBase.cs
- LinkedList.cs
- EllipseGeometry.cs
- SizeAnimationBase.cs
- CriticalFinalizerObject.cs
- GridViewUpdateEventArgs.cs
- RectangleF.cs
- InputManager.cs
- XPathConvert.cs
- SinglePageViewer.cs
- ScopelessEnumAttribute.cs
- SafeViewOfFileHandle.cs
- QuaternionAnimation.cs
- CompilerState.cs
- KeyPullup.cs
- StylusPointCollection.cs
- SqlDataSource.cs
- Function.cs
- TransportSecurityHelpers.cs
- webbrowsersite.cs
- RootBuilder.cs
- XmlArrayItemAttributes.cs
- CopyNamespacesAction.cs
- Compiler.cs
- TraceContextEventArgs.cs
- XmlILStorageConverter.cs
- Accessors.cs
- StateMachineWorkflowInstance.cs
- SqlDataSourceTableQuery.cs
- SerializationSectionGroup.cs
- HasCopySemanticsAttribute.cs
- ResolvedKeyFrameEntry.cs
- SelectionProviderWrapper.cs
- SqlConnectionPoolGroupProviderInfo.cs