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
- HttpCacheVary.cs
- ServiceBuildProvider.cs
- UnicodeEncoding.cs
- _PooledStream.cs
- XmlnsDictionary.cs
- SingleConverter.cs
- EncryptedPackage.cs
- XmlAtomicValue.cs
- HostExecutionContextManager.cs
- SqlDataSourceView.cs
- DbFunctionCommandTree.cs
- BindingSource.cs
- OrthographicCamera.cs
- CommandEventArgs.cs
- FormsAuthenticationConfiguration.cs
- GlobalizationAssembly.cs
- DataBoundControlDesigner.cs
- Image.cs
- SystemIPInterfaceProperties.cs
- ClientData.cs
- UIElementIsland.cs
- XpsImage.cs
- OleDbConnectionFactory.cs
- ObjectQuery_EntitySqlExtensions.cs
- FixedHyperLink.cs
- NamedPipeConnectionPoolSettings.cs
- XmlQueryRuntime.cs
- ClientSponsor.cs
- SpecularMaterial.cs
- Point.cs
- WebServiceReceive.cs
- BehaviorService.cs
- LinearGradientBrush.cs
- DrawingContextDrawingContextWalker.cs
- CorrelationActionMessageFilter.cs
- MarkedHighlightComponent.cs
- DayRenderEvent.cs
- Container.cs
- precedingquery.cs
- KeyEventArgs.cs
- OutputCacheModule.cs
- WebSysDescriptionAttribute.cs
- designeractionbehavior.cs
- _Rfc2616CacheValidators.cs
- XmlBinaryReaderSession.cs
- LocatorPart.cs
- GeometryDrawing.cs
- ProfilePropertySettingsCollection.cs
- ConfigXmlCDataSection.cs
- DataGridViewCellLinkedList.cs
- Font.cs
- AppDomainEvidenceFactory.cs
- XmlSchemaSimpleContent.cs
- Image.cs
- SqlDataAdapter.cs
- IApplicationTrustManager.cs
- TdsParserSafeHandles.cs
- httpserverutility.cs
- ValidationEventArgs.cs
- DynamicObjectAccessor.cs
- PerformanceCounterPermission.cs
- HttpRequest.cs
- FixedTextPointer.cs
- NavigatorInput.cs
- SimpleParser.cs
- SafePEFileHandle.cs
- Point4DValueSerializer.cs
- AsyncOperation.cs
- DrawingCollection.cs
- CommandHelper.cs
- MethodRental.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- OleDbTransaction.cs
- DataGridViewUtilities.cs
- DocumentPageViewAutomationPeer.cs
- SystemTcpStatistics.cs
- OleDbInfoMessageEvent.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- UnmanagedMemoryStream.cs
- WmlCommandAdapter.cs
- PointConverter.cs
- PropertyDescriptorCollection.cs
- ClientSettings.cs
- Line.cs
- ToolstripProfessionalRenderer.cs
- UIElement3D.cs
- FileCodeGroup.cs
- DesignerLoader.cs
- AmbientProperties.cs
- FilteredDataSetHelper.cs
- ButtonRenderer.cs
- HttpRuntime.cs
- TTSEvent.cs
- FlowNode.cs
- PhysicalAddress.cs
- EdmProviderManifest.cs
- OpenTypeLayout.cs
- SynchronizationContext.cs
- externdll.cs