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
- UnsafeNativeMethods.cs
- CalendarDay.cs
- DependencyPropertyValueSerializer.cs
- ForeignConstraint.cs
- ColumnHeader.cs
- ChtmlPageAdapter.cs
- ListBox.cs
- XmlTextEncoder.cs
- SequenceDesigner.cs
- WebHttpSecurityModeHelper.cs
- JapaneseCalendar.cs
- BulletedListEventArgs.cs
- CssTextWriter.cs
- ResourcePermissionBase.cs
- OdbcHandle.cs
- IdentityVerifier.cs
- TypeDescriptorFilterService.cs
- ScriptControlDescriptor.cs
- Triangle.cs
- hebrewshape.cs
- WSSecureConversationDec2005.cs
- XmlRawWriter.cs
- TreeView.cs
- StreamInfo.cs
- DoubleAnimationBase.cs
- CustomError.cs
- HtmlEncodedRawTextWriter.cs
- TreeNodeBindingCollection.cs
- DefaultParameterValueAttribute.cs
- TraceProvider.cs
- XmlExtensionFunction.cs
- StateMachine.cs
- Line.cs
- GridViewEditEventArgs.cs
- CodeDomSerializationProvider.cs
- EntityDataSourceDesigner.cs
- Vector3DCollectionConverter.cs
- EventMappingSettingsCollection.cs
- GridLengthConverter.cs
- PathFigureCollection.cs
- GridViewSortEventArgs.cs
- CodeThrowExceptionStatement.cs
- ExceptionUtil.cs
- TryCatch.cs
- NativeMethods.cs
- ItemContainerGenerator.cs
- VectorAnimation.cs
- MarkupExtensionSerializer.cs
- CreateInstanceBinder.cs
- DataGridViewColumnHeaderCell.cs
- linebase.cs
- TransformerInfo.cs
- SByteConverter.cs
- QuaternionRotation3D.cs
- XsltInput.cs
- LinkLabel.cs
- SqlDataSourceCommandEventArgs.cs
- XmlSerializationWriter.cs
- HtmlTextArea.cs
- AbstractSvcMapFileLoader.cs
- RepeaterItemEventArgs.cs
- HtmlCalendarAdapter.cs
- Send.cs
- TextTreeTextElementNode.cs
- WsdlWriter.cs
- TypeDescriptionProvider.cs
- ContextDataSourceView.cs
- RadioButtonList.cs
- QuaternionRotation3D.cs
- __ComObject.cs
- MouseCaptureWithinProperty.cs
- FillErrorEventArgs.cs
- BehaviorEditorPart.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XpsPartBase.cs
- DelegateHelpers.Generated.cs
- OperationResponse.cs
- AssemblyResourceLoader.cs
- TableStyle.cs
- UnionExpr.cs
- TextEditorMouse.cs
- EventLogRecord.cs
- StackBuilderSink.cs
- CounterNameConverter.cs
- DataExpression.cs
- ListViewGroup.cs
- MinMaxParagraphWidth.cs
- FixedDocumentSequencePaginator.cs
- MachineSettingsSection.cs
- XmlSchemaSet.cs
- WebServiceMethodData.cs
- MethodExpr.cs
- StringDictionary.cs
- DesignerToolboxInfo.cs
- GradientSpreadMethodValidation.cs
- CompositeDataBoundControl.cs
- AsyncContentLoadedEventArgs.cs
- ToolStripMenuItemCodeDomSerializer.cs
- DataSourceExpression.cs
- DataGridItemEventArgs.cs