Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / MS / Internal / PlatformCulture.cs / 1 / 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
- DataGridViewRowErrorTextNeededEventArgs.cs
- HwndAppCommandInputProvider.cs
- OrderByBuilder.cs
- XXXOnTypeBuilderInstantiation.cs
- SQLInt32.cs
- FontTypeConverter.cs
- SelectionGlyph.cs
- PlanCompilerUtil.cs
- SimpleBitVector32.cs
- AssemblyAttributesGoHere.cs
- HttpResponseHeader.cs
- PartialCachingControl.cs
- ZoneButton.cs
- SqlBulkCopyColumnMapping.cs
- GPStream.cs
- InvalidContentTypeException.cs
- EpmAttributeNameBuilder.cs
- Stylus.cs
- BamlReader.cs
- ObjectSpanRewriter.cs
- DataGridViewLayoutData.cs
- DataPagerFieldCommandEventArgs.cs
- RegexCompilationInfo.cs
- DataFormats.cs
- X509ClientCertificateAuthentication.cs
- ExtractedStateEntry.cs
- CompilerCollection.cs
- XslVisitor.cs
- ResourceContainer.cs
- ProfileBuildProvider.cs
- DefaultTextStoreTextComposition.cs
- QueryAccessibilityHelpEvent.cs
- DesignerLoader.cs
- handlecollector.cs
- XmlBinaryWriter.cs
- ObjectDataSourceView.cs
- XmlTextAttribute.cs
- QueryActivatableWorkflowsCommand.cs
- BindingOperations.cs
- VirtualPathProvider.cs
- MobilePage.cs
- XmlSchemaObject.cs
- ObjectDataSource.cs
- CngProvider.cs
- NameScope.cs
- shaper.cs
- Line.cs
- ToggleButton.cs
- DataMisalignedException.cs
- TreeViewAutomationPeer.cs
- RepeatButton.cs
- ConfigXmlWhitespace.cs
- WindowsToolbarAsMenu.cs
- DataGridViewColumn.cs
- TransformCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- MetadataItem.cs
- GridSplitterAutomationPeer.cs
- WorkflowApplicationEventArgs.cs
- DataSourceGroupCollection.cs
- EntityDesignerBuildProvider.cs
- EnvelopedPkcs7.cs
- TrustLevel.cs
- SHA1CryptoServiceProvider.cs
- DocumentPaginator.cs
- FixedLineResult.cs
- unsafeIndexingFilterStream.cs
- RequiredFieldValidator.cs
- PrintingPermissionAttribute.cs
- shaperfactoryquerycacheentry.cs
- XPathMultyIterator.cs
- DateTimeConverter2.cs
- Point3DKeyFrameCollection.cs
- StylusEditingBehavior.cs
- EtwProvider.cs
- BuildProvider.cs
- SQLUtility.cs
- ObjectViewEntityCollectionData.cs
- BitmapEffectGroup.cs
- SystemEvents.cs
- SqlInternalConnection.cs
- WrapPanel.cs
- MessageFormatterConverter.cs
- TransformGroup.cs
- MessageAction.cs
- UserValidatedEventArgs.cs
- SamlEvidence.cs
- NamedPipeProcessProtocolHandler.cs
- ICspAsymmetricAlgorithm.cs
- StylusCollection.cs
- DataGridCellsPanel.cs
- RuntimeArgumentHandle.cs
- SiteMapNodeItem.cs
- CodeTryCatchFinallyStatement.cs
- TextEditorCopyPaste.cs
- ConfigurationStrings.cs
- WebPartVerbsEventArgs.cs
- wgx_sdk_version.cs
- ISAPIRuntime.cs
- BufferedGraphicsContext.cs