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
- DiscoveryClientProtocol.cs
- CheckoutException.cs
- FtpWebRequest.cs
- SchemaType.cs
- ByteRangeDownloader.cs
- XmlSchemaValidator.cs
- ReferenceConverter.cs
- SendMailErrorEventArgs.cs
- FixedHighlight.cs
- EmbeddedMailObjectsCollection.cs
- SqlCrossApplyToCrossJoin.cs
- XmlBoundElement.cs
- SqlDataSourceCommandParser.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RealProxy.cs
- CodeMethodInvokeExpression.cs
- DataGridColumnFloatingHeader.cs
- TextMetrics.cs
- CodeAccessPermission.cs
- SetterTriggerConditionValueConverter.cs
- DesignerSerializationOptionsAttribute.cs
- TableLayoutStyle.cs
- XmlTypeAttribute.cs
- BindToObject.cs
- UnsafeNativeMethods.cs
- ManifestResourceInfo.cs
- AddressHeaderCollectionElement.cs
- DataTableMappingCollection.cs
- RangeValueProviderWrapper.cs
- TakeQueryOptionExpression.cs
- EntityDataSourceDataSelection.cs
- SpecialFolderEnumConverter.cs
- LookupTables.cs
- PenLineCapValidation.cs
- DiscoveryClientChannelBase.cs
- InternalCache.cs
- Bold.cs
- MemoryFailPoint.cs
- DtdParser.cs
- CollectionView.cs
- SqlGenerator.cs
- GetParentChain.cs
- DeclarativeCatalogPart.cs
- WindowCollection.cs
- SymmetricKeyWrap.cs
- ByteConverter.cs
- HostingEnvironmentWrapper.cs
- UnknownBitmapEncoder.cs
- DataListDesigner.cs
- RTLAwareMessageBox.cs
- HtmlElementCollection.cs
- TraceXPathNavigator.cs
- Perspective.cs
- CalendarButton.cs
- SmtpNegotiateAuthenticationModule.cs
- HttpProfileGroupBase.cs
- ParallelSeparator.xaml.cs
- ShapingWorkspace.cs
- Identity.cs
- DetailsViewCommandEventArgs.cs
- MailSettingsSection.cs
- XmlElementList.cs
- ListBox.cs
- CryptoConfig.cs
- AssertFilter.cs
- SafeLibraryHandle.cs
- ValidatorCollection.cs
- TextBoxAutomationPeer.cs
- DistinctQueryOperator.cs
- Accessible.cs
- LookupBindingPropertiesAttribute.cs
- ToolStripHighContrastRenderer.cs
- ToolboxComponentsCreatingEventArgs.cs
- ReferenceEqualityComparer.cs
- Vars.cs
- SchemaCollectionPreprocessor.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- BitmapEffectInput.cs
- Convert.cs
- AudioBase.cs
- DataControlFieldHeaderCell.cs
- BitmapEffectGroup.cs
- CommonObjectSecurity.cs
- XmlSerializableServices.cs
- RoutedEventArgs.cs
- HitTestWithGeometryDrawingContextWalker.cs
- shaperfactoryquerycacheentry.cs
- TextFormatter.cs
- AssemblyNameEqualityComparer.cs
- ReservationNotFoundException.cs
- ArcSegment.cs
- FixedMaxHeap.cs
- BindingExpressionUncommonField.cs
- DataTableExtensions.cs
- XPathNode.cs
- SettingsAttributeDictionary.cs
- BinaryWriter.cs
- METAHEADER.cs
- SmiSettersStream.cs
- PeerNode.cs