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
- PowerStatus.cs
- Thumb.cs
- RecordBuilder.cs
- AlphaSortedEnumConverter.cs
- XmlParserContext.cs
- CustomCredentialPolicy.cs
- FontFamilyConverter.cs
- TraceListeners.cs
- FrameworkElementFactory.cs
- RequestCachePolicyConverter.cs
- CellParagraph.cs
- NativeCppClassAttribute.cs
- Blend.cs
- ContactManager.cs
- ColorMap.cs
- PathFigure.cs
- remotingproxy.cs
- compensatingcollection.cs
- JoinSymbol.cs
- Interlocked.cs
- GestureRecognitionResult.cs
- MessageQueueTransaction.cs
- GiveFeedbackEventArgs.cs
- PersonalizationProviderHelper.cs
- MaterialCollection.cs
- EditorZone.cs
- Odbc32.cs
- DataGridSortCommandEventArgs.cs
- FixedTextPointer.cs
- MetadataSet.cs
- DocumentsTrace.cs
- thaishape.cs
- HierarchicalDataSourceControl.cs
- SelectionItemProviderWrapper.cs
- TerminatorSinks.cs
- CharAnimationBase.cs
- ApplicationInfo.cs
- HandlerElementCollection.cs
- AnimationClockResource.cs
- HatchBrush.cs
- ColorAnimationUsingKeyFrames.cs
- WindowsFormsSynchronizationContext.cs
- BamlRecords.cs
- HatchBrush.cs
- ExecutionContext.cs
- Matrix3D.cs
- DNS.cs
- AmbientLight.cs
- TextBox.cs
- GenericTypeParameterBuilder.cs
- FileDialog_Vista.cs
- ServiceContractGenerator.cs
- LocalizationComments.cs
- indexingfiltermarshaler.cs
- Wildcard.cs
- XmlSerializerAssemblyAttribute.cs
- ReliabilityContractAttribute.cs
- MLangCodePageEncoding.cs
- RefreshPropertiesAttribute.cs
- MailWriter.cs
- SystemInfo.cs
- SqlDataSourceFilteringEventArgs.cs
- PrintPageEvent.cs
- KeyFrames.cs
- ObjectDataSource.cs
- WindowsGraphics2.cs
- PackageDigitalSignature.cs
- TerminatorSinks.cs
- InstallerTypeAttribute.cs
- EndpointConfigContainer.cs
- UIElement3D.cs
- ComplexType.cs
- HtmlControlPersistable.cs
- SynchronizedReadOnlyCollection.cs
- PrivilegedConfigurationManager.cs
- FixedSOMTable.cs
- SubMenuStyle.cs
- EventManager.cs
- ScalarRestriction.cs
- RandomNumberGenerator.cs
- ViewBox.cs
- FileInfo.cs
- ConstructorExpr.cs
- WebBaseEventKeyComparer.cs
- CustomCredentialPolicy.cs
- ProgressiveCrcCalculatingStream.cs
- TextDecoration.cs
- SrgsElementFactoryCompiler.cs
- Graphics.cs
- Util.cs
- OracleNumber.cs
- ValidatorAttribute.cs
- MultipartIdentifier.cs
- ThicknessConverter.cs
- TextTreeText.cs
- WindowsStatusBar.cs
- DesignerLoader.cs
- PingOptions.cs
- DynamicHyperLink.cs
- ContainerVisual.cs