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
- RequestCache.cs
- GenericWebPart.cs
- EtwTrackingBehavior.cs
- HtmlEncodedRawTextWriter.cs
- CodePrimitiveExpression.cs
- SiteMapProvider.cs
- LoopExpression.cs
- SatelliteContractVersionAttribute.cs
- MetabaseServerConfig.cs
- DelimitedListTraceListener.cs
- TransformPattern.cs
- COMException.cs
- WebConfigurationHostFileChange.cs
- ResourceIDHelper.cs
- UserControlBuildProvider.cs
- FileDialogPermission.cs
- DrawingContextWalker.cs
- Validator.cs
- TextTreeTextNode.cs
- TcpChannelListener.cs
- FileLogRecordHeader.cs
- ReceiveActivity.cs
- FragmentQueryKB.cs
- Duration.cs
- ICollection.cs
- MatrixKeyFrameCollection.cs
- DescendentsWalkerBase.cs
- xml.cs
- VideoDrawing.cs
- CallSiteBinder.cs
- RectAnimation.cs
- PerformanceCounterCategory.cs
- GcHandle.cs
- RetriableClipboard.cs
- PageFunction.cs
- QilIterator.cs
- PropertyPushdownHelper.cs
- VBIdentifierTrimConverter.cs
- XmlDataSourceNodeDescriptor.cs
- ClientUtils.cs
- IdentitySection.cs
- GenerateTemporaryTargetAssembly.cs
- ToolStripPanelRow.cs
- AssociationTypeEmitter.cs
- FormattedTextSymbols.cs
- JournalNavigationScope.cs
- ProxyFragment.cs
- TextHidden.cs
- CellParagraph.cs
- DataSourceGroupCollection.cs
- DateTimeFormatInfo.cs
- AccessorTable.cs
- CriticalFinalizerObject.cs
- MenuStrip.cs
- JumpPath.cs
- WindowsMenu.cs
- DataGridItemEventArgs.cs
- ManagementBaseObject.cs
- WebPartRestoreVerb.cs
- NGCSerializerAsync.cs
- TdsParserHelperClasses.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- UITypeEditor.cs
- WebPartTracker.cs
- DataBoundControlDesigner.cs
- _ContextAwareResult.cs
- BlockCollection.cs
- HealthMonitoringSectionHelper.cs
- SafeFileMappingHandle.cs
- ArrangedElementCollection.cs
- templategroup.cs
- EmptyQuery.cs
- ObjectStateManagerMetadata.cs
- ManagementOptions.cs
- WebHttpEndpoint.cs
- FloaterParaClient.cs
- RealizationContext.cs
- DataGridViewBand.cs
- XamlToRtfWriter.cs
- Graphics.cs
- ListControl.cs
- UIElementPropertyUndoUnit.cs
- SaveWorkflowCommand.cs
- CommandID.cs
- WebPartTracker.cs
- SelectionPatternIdentifiers.cs
- NotifyIcon.cs
- XmlNode.cs
- TemplateColumn.cs
- RunClient.cs
- ContextDataSourceView.cs
- CheckedListBox.cs
- WindowProviderWrapper.cs
- PropertyRecord.cs
- SortDescriptionCollection.cs
- Button.cs
- CodePageUtils.cs
- CharEntityEncoderFallback.cs
- PenLineCapValidation.cs
- ExtensionFile.cs