Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ScopelessEnumAttribute.cs
- ThemeDictionaryExtension.cs
- XmlWrappingReader.cs
- MetaType.cs
- contentDescriptor.cs
- XhtmlBasicSelectionListAdapter.cs
- TypeConverter.cs
- Type.cs
- GenericTextProperties.cs
- SecurityAlgorithmSuite.cs
- XmlSignatureProperties.cs
- NegotiateStream.cs
- ObjectDataSourceChooseTypePanel.cs
- PersonalizationStateInfo.cs
- Main.cs
- StaticDataManager.cs
- AdRotator.cs
- __Error.cs
- NamespaceQuery.cs
- Icon.cs
- EdmToObjectNamespaceMap.cs
- AttributeExtensions.cs
- InfocardClientCredentials.cs
- BamlResourceContent.cs
- MemberAccessException.cs
- ValidationHelpers.cs
- WhitespaceRuleLookup.cs
- TraceLevelStore.cs
- DbReferenceCollection.cs
- GridViewRowPresenter.cs
- DiscoveryReferences.cs
- LoginCancelEventArgs.cs
- GroupItem.cs
- XappLauncher.cs
- CapabilitiesUse.cs
- TextStore.cs
- Mutex.cs
- X509IssuerSerialKeyIdentifierClause.cs
- XpsFilter.cs
- TimeSpan.cs
- RTLAwareMessageBox.cs
- Propagator.cs
- XmlSchemaSubstitutionGroup.cs
- ObservableDictionary.cs
- AttributeAction.cs
- XomlCompilerHelpers.cs
- TextMetrics.cs
- GroupStyle.cs
- EntityKey.cs
- FocusManager.cs
- WeakKeyDictionary.cs
- MenuItemCollection.cs
- XmlIlTypeHelper.cs
- ApplicationDirectoryMembershipCondition.cs
- UserControl.cs
- ConvertEvent.cs
- Adorner.cs
- AuthenticationService.cs
- NetStream.cs
- DataSourceSelectArguments.cs
- ToolStripDesignerAvailabilityAttribute.cs
- HtmlDocument.cs
- RepeaterItemEventArgs.cs
- RepeaterItem.cs
- StreamGeometryContext.cs
- TextSerializer.cs
- WebPartUserCapability.cs
- RadioButtonFlatAdapter.cs
- PerspectiveCamera.cs
- XmlSchemaDatatype.cs
- StructuralObject.cs
- LogicalExpressionEditor.cs
- HitTestDrawingContextWalker.cs
- CaretElement.cs
- MappingModelBuildProvider.cs
- TextReader.cs
- ResourceContainer.cs
- IPCCacheManager.cs
- PropertyMetadata.cs
- Token.cs
- FontResourceCache.cs
- FileDetails.cs
- TableRow.cs
- SpeakCompletedEventArgs.cs
- ImageIndexConverter.cs
- RegexTree.cs
- ActivationArguments.cs
- XmlObjectSerializerWriteContextComplex.cs
- SiteMapSection.cs
- SHA256.cs
- TypeUnloadedException.cs
- D3DImage.cs
- LinqDataSourceValidationException.cs
- HMACSHA256.cs
- TypedTableBaseExtensions.cs
- BamlResourceDeserializer.cs
- ToolStripHighContrastRenderer.cs
- AuthenticationServiceManager.cs
- RelationshipEnd.cs
- XamlReader.cs