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
- NativeMethods.cs
- CommandBinding.cs
- ProxyManager.cs
- GrammarBuilderWildcard.cs
- RtfFormatStack.cs
- QuadTree.cs
- SharedStream.cs
- VectorConverter.cs
- ObfuscationAttribute.cs
- DetailsViewModeEventArgs.cs
- Matrix3DValueSerializer.cs
- CommandManager.cs
- CheckBoxFlatAdapter.cs
- MLangCodePageEncoding.cs
- Subtree.cs
- DesignerDataView.cs
- NeedSkipTokenVisitor.cs
- Freezable.cs
- NetMsmqBindingCollectionElement.cs
- RegexMatch.cs
- ReaderOutput.cs
- LayoutUtils.cs
- webbrowsersite.cs
- IdleTimeoutMonitor.cs
- HashMembershipCondition.cs
- WaitHandle.cs
- OutputScopeManager.cs
- SmiEventSink_Default.cs
- FlowLayout.cs
- SqlDataSourceCommandEventArgs.cs
- DataServiceHostFactory.cs
- TraversalRequest.cs
- DefaultValueAttribute.cs
- TdsParameterSetter.cs
- FilterQueryOptionExpression.cs
- InstanceStore.cs
- Button.cs
- GuidConverter.cs
- UrlParameterWriter.cs
- EdmPropertyAttribute.cs
- ADMembershipProvider.cs
- Model3D.cs
- ObjectReferenceStack.cs
- TranslateTransform3D.cs
- ComplexBindingPropertiesAttribute.cs
- DBDataPermission.cs
- ToolStripPanel.cs
- KnownBoxes.cs
- HwndSourceParameters.cs
- TextTreeTextBlock.cs
- ProfileProvider.cs
- DoubleIndependentAnimationStorage.cs
- Debug.cs
- NameScope.cs
- FrameworkContentElementAutomationPeer.cs
- EventSourceCreationData.cs
- PackWebResponse.cs
- StringBlob.cs
- DataRowCollection.cs
- QueryResponse.cs
- WorkflowQueueInfo.cs
- SystemIPInterfaceProperties.cs
- AsyncResult.cs
- CodeTypeReference.cs
- XamlSerializer.cs
- OdbcFactory.cs
- ObjectItemNoOpAssemblyLoader.cs
- DeclaredTypeValidatorAttribute.cs
- QuaternionRotation3D.cs
- XmlTextEncoder.cs
- ThemeDirectoryCompiler.cs
- KerberosSecurityTokenParameters.cs
- OdbcUtils.cs
- TypeSystem.cs
- PropertyEmitterBase.cs
- SqlClientPermission.cs
- ReaderWriterLockWrapper.cs
- OutgoingWebResponseContext.cs
- UserControlParser.cs
- SQLDecimal.cs
- InternalDispatchObject.cs
- XmlNullResolver.cs
- XmlSchemaRedefine.cs
- PersonalizationStateInfoCollection.cs
- SymmetricCryptoHandle.cs
- PageThemeBuildProvider.cs
- XslAstAnalyzer.cs
- UnknownBitmapDecoder.cs
- PrintingPermissionAttribute.cs
- XPathBinder.cs
- TrackingDataItemValue.cs
- SynchronousSendBindingElement.cs
- MimeXmlReflector.cs
- Vector3D.cs
- ViewgenContext.cs
- ThreadStaticAttribute.cs
- ProfileServiceManager.cs
- PeerToPeerException.cs
- VoiceSynthesis.cs
- MimeFormatter.cs