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
- ConnectionStringSettings.cs
- Pair.cs
- CellLabel.cs
- ExecutionEngineException.cs
- DrawingContextDrawingContextWalker.cs
- AsnEncodedData.cs
- PropertyConverter.cs
- UserControl.cs
- MenuItemBinding.cs
- ServerValidateEventArgs.cs
- XmlSchemaElement.cs
- SettingsSection.cs
- LessThanOrEqual.cs
- StylesEditorDialog.cs
- System.Data_BID.cs
- Bookmark.cs
- CloseSequence.cs
- KeyValueSerializer.cs
- ContainerUtilities.cs
- TextInfo.cs
- XPathDocumentBuilder.cs
- _CommandStream.cs
- MarkupCompiler.cs
- ToolStripSplitStackLayout.cs
- Type.cs
- ListViewCancelEventArgs.cs
- ExceptionHandler.cs
- baseaxisquery.cs
- FixedSOMLineCollection.cs
- ConfigurationStrings.cs
- ContainerActivationHelper.cs
- XmlLoader.cs
- WorkflowApplicationTerminatedException.cs
- OletxCommittableTransaction.cs
- DataGridColumnsPage.cs
- ExpressionBuilderContext.cs
- HtmlGenericControl.cs
- MsmqBindingElementBase.cs
- StateWorkerRequest.cs
- NameScope.cs
- TableLayoutColumnStyleCollection.cs
- ThreadSafeList.cs
- OutputCacheSection.cs
- SqlWebEventProvider.cs
- Effect.cs
- comcontractssection.cs
- ServiceRoute.cs
- XmlSchemaSequence.cs
- MaskPropertyEditor.cs
- Pkcs9Attribute.cs
- DeadCharTextComposition.cs
- MapPathBasedVirtualPathProvider.cs
- QueryOperationResponseOfT.cs
- DocumentViewer.cs
- BuildProvider.cs
- KeySplineConverter.cs
- TextWriterTraceListener.cs
- X509CertificateCollection.cs
- TreeNodeSelectionProcessor.cs
- SystemColorTracker.cs
- StructuredType.cs
- IsolatedStorageFileStream.cs
- ParseElementCollection.cs
- HtmlSelectionListAdapter.cs
- DataStreamFromComStream.cs
- TextRangeEditTables.cs
- ResourceReferenceExpressionConverter.cs
- BezierSegment.cs
- LinqDataSourceContextEventArgs.cs
- XmlElement.cs
- ResolveDuplexCD1AsyncResult.cs
- WebPartEventArgs.cs
- COMException.cs
- StoreAnnotationsMap.cs
- EventRecord.cs
- SkipQueryOptionExpression.cs
- bindurihelper.cs
- ProtocolElement.cs
- RawStylusInputReport.cs
- StaticExtensionConverter.cs
- __Filters.cs
- MachineSettingsSection.cs
- Int32.cs
- EncryptedXml.cs
- DecimalSumAggregationOperator.cs
- StringResourceManager.cs
- RouteParametersHelper.cs
- DataGridViewRow.cs
- TransformCollection.cs
- PrintDialog.cs
- Translator.cs
- SecureConversationServiceCredential.cs
- Quad.cs
- HashAlgorithm.cs
- MemberRelationshipService.cs
- glyphs.cs
- Font.cs
- ErrorLog.cs
- ZipArchive.cs
- ResourceAssociationTypeEnd.cs