Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BidOverLoads.cs
- OdbcConnectionPoolProviderInfo.cs
- TagPrefixInfo.cs
- IntPtr.cs
- indexingfiltermarshaler.cs
- DataGridItem.cs
- SqlDataRecord.cs
- OciHandle.cs
- PeerNodeAddress.cs
- LongValidator.cs
- OptimisticConcurrencyException.cs
- WSFederationHttpSecurity.cs
- WasEndpointConfigContainer.cs
- RelationHandler.cs
- StreamResourceInfo.cs
- EntityCommandCompilationException.cs
- XmlChildNodes.cs
- serverconfig.cs
- Byte.cs
- FacetChecker.cs
- Triangle.cs
- MemoryRecordBuffer.cs
- CodeVariableReferenceExpression.cs
- InitializeCorrelation.cs
- ToolboxComponentsCreatedEventArgs.cs
- DescendantBaseQuery.cs
- RepeaterItem.cs
- Util.cs
- SqlDataSourceCommandEventArgs.cs
- CustomTypeDescriptor.cs
- ListViewInsertionMark.cs
- TextFormatterHost.cs
- MaterialGroup.cs
- EncryptedKey.cs
- MdImport.cs
- XmlSchemaValidator.cs
- TextChange.cs
- SecurityElement.cs
- SapiRecoContext.cs
- RegexRunner.cs
- Point4DValueSerializer.cs
- ShutDownListener.cs
- LinkTarget.cs
- EmissiveMaterial.cs
- StringWriter.cs
- LocatorGroup.cs
- FamilyMapCollection.cs
- XDeferredAxisSource.cs
- DataGridViewCellStyleChangedEventArgs.cs
- AuthenticatedStream.cs
- ResourceType.cs
- Point3DAnimation.cs
- HotSpot.cs
- MaterialGroup.cs
- Regex.cs
- EnumType.cs
- PrintControllerWithStatusDialog.cs
- ContainerFilterService.cs
- ProfileModule.cs
- XDeferredAxisSource.cs
- PersonalizationProviderCollection.cs
- ConfigXmlWhitespace.cs
- BindToObject.cs
- MultilineStringConverter.cs
- WebPartDisplayModeEventArgs.cs
- TdsEnums.cs
- SpellerInterop.cs
- DropShadowBitmapEffect.cs
- DrawingCollection.cs
- ProviderUtil.cs
- WebServiceEndpoint.cs
- CellNormalizer.cs
- OutputCacheProfileCollection.cs
- ExtensionFile.cs
- DynamicScriptObject.cs
- DataTableMapping.cs
- BezierSegment.cs
- FixedSOMTextRun.cs
- SingleSelectRootGridEntry.cs
- CodeSnippetStatement.cs
- SequentialUshortCollection.cs
- AspNetCacheProfileAttribute.cs
- VisualStateManager.cs
- RecipientInfo.cs
- ListViewAutomationPeer.cs
- StylusPointCollection.cs
- MediaElementAutomationPeer.cs
- WebHttpBindingCollectionElement.cs
- DbConnectionClosed.cs
- ImmComposition.cs
- ToolBar.cs
- shaperfactory.cs
- SqlCacheDependencySection.cs
- AbandonedMutexException.cs
- Binding.cs
- Substitution.cs
- TransformDescriptor.cs
- SingleAnimation.cs
- OleDbCommandBuilder.cs
- ContextMenu.cs