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
- ScriptHandlerFactory.cs
- AnnotationHighlightLayer.cs
- HttpFileCollectionWrapper.cs
- ParserContext.cs
- StretchValidation.cs
- XmlSchemaSubstitutionGroup.cs
- TextEditorTables.cs
- PropertyTab.cs
- DefaultValueConverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- Page.cs
- PeerNameRecordCollection.cs
- ClusterRegistryConfigurationProvider.cs
- DelegatedStream.cs
- ToolStripProgressBar.cs
- SystemSounds.cs
- CharacterBufferReference.cs
- ListView.cs
- Math.cs
- Fx.cs
- VerticalAlignConverter.cs
- CodeDomExtensionMethods.cs
- TraceInternal.cs
- Item.cs
- ProcessModelSection.cs
- TreeViewHitTestInfo.cs
- SecurityIdentifierElementCollection.cs
- List.cs
- ErrorStyle.cs
- LabelDesigner.cs
- OrderedDictionary.cs
- AdornedElementPlaceholder.cs
- FrameworkContextData.cs
- DataGridCommandEventArgs.cs
- MarkupExtensionParser.cs
- Constraint.cs
- ToolStripLocationCancelEventArgs.cs
- Menu.cs
- BoundPropertyEntry.cs
- Evaluator.cs
- SqlDataSourceFilteringEventArgs.cs
- ClientViaElement.cs
- StateWorkerRequest.cs
- HtmlElementCollection.cs
- DataTemplateKey.cs
- XmlWriter.cs
- ImportContext.cs
- StateMachineWorkflow.cs
- Pool.cs
- SystemIPGlobalStatistics.cs
- DataGridViewTextBoxCell.cs
- SiteMapPathDesigner.cs
- ColorComboBox.cs
- __Filters.cs
- FunctionCommandText.cs
- EntityDataSourceState.cs
- LoginDesignerUtil.cs
- FunctionQuery.cs
- SoapIncludeAttribute.cs
- SQLInt64.cs
- BindingsCollection.cs
- XmlSchemaSimpleContentExtension.cs
- TextEncodedRawTextWriter.cs
- MD5CryptoServiceProvider.cs
- CodeCastExpression.cs
- RoutedEventArgs.cs
- TreeView.cs
- MethodSignatureGenerator.cs
- RequestUriProcessor.cs
- Point3DAnimation.cs
- HtmlAnchor.cs
- CompositeFontFamily.cs
- FillRuleValidation.cs
- SmtpClient.cs
- objectresult_tresulttype.cs
- DynamicDataResources.Designer.cs
- SafePEFileHandle.cs
- NodeFunctions.cs
- MappingException.cs
- XmlSchemaAttributeGroupRef.cs
- MonthChangedEventArgs.cs
- DataSourceGeneratorException.cs
- BuildProvider.cs
- PiiTraceSource.cs
- HtmlSelect.cs
- DragEventArgs.cs
- PeerCollaboration.cs
- MetadataUtil.cs
- WebEventTraceProvider.cs
- CodeVariableReferenceExpression.cs
- Repeater.cs
- DetailsView.cs
- ExecutionContext.cs
- WorkflowOperationContext.cs
- Base64Stream.cs
- _DomainName.cs
- InternalPolicyElement.cs
- XmlNodeChangedEventArgs.cs
- QueryOpcode.cs
- AvTrace.cs