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
- login.cs
- OutputCacheSettings.cs
- SqlUDTStorage.cs
- _HeaderInfoTable.cs
- JumpPath.cs
- EmbossBitmapEffect.cs
- DynamicRendererThreadManager.cs
- NonClientArea.cs
- Visual3D.cs
- DataGridViewCellParsingEventArgs.cs
- DataGridPreparingCellForEditEventArgs.cs
- ProcessStartInfo.cs
- IWorkflowDebuggerService.cs
- StringArrayConverter.cs
- OleDbException.cs
- ConversionContext.cs
- COM2ComponentEditor.cs
- WebPartConnectVerb.cs
- Operator.cs
- ComponentRenameEvent.cs
- SiteMapNode.cs
- OrderedDictionaryStateHelper.cs
- EventSourceCreationData.cs
- TableRow.cs
- ButtonBaseAdapter.cs
- SqlNodeAnnotation.cs
- linebase.cs
- NodeFunctions.cs
- SetStoryboardSpeedRatio.cs
- ColorMatrix.cs
- SafeNativeMethods.cs
- ObsoleteAttribute.cs
- HttpDebugHandler.cs
- EncoderNLS.cs
- XmlSerializerVersionAttribute.cs
- WebMessageEncoderFactory.cs
- WrappedIUnknown.cs
- QilName.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- __Filters.cs
- HiddenField.cs
- MatrixIndependentAnimationStorage.cs
- RecordBuilder.cs
- XmlAttributeHolder.cs
- ApplicationTrust.cs
- XmlSchemaSimpleContent.cs
- WindowsContainer.cs
- FacetDescriptionElement.cs
- PriorityQueue.cs
- TypeNameConverter.cs
- Currency.cs
- RowUpdatedEventArgs.cs
- PerformanceCounterPermissionEntry.cs
- VirtualizedContainerService.cs
- PrintDialog.cs
- DesignerRegion.cs
- ErrorHandlerFaultInfo.cs
- TraceUtils.cs
- SpeakProgressEventArgs.cs
- SerializerDescriptor.cs
- CultureInfo.cs
- BindingOperations.cs
- TypeRestriction.cs
- ButtonDesigner.cs
- MemoryPressure.cs
- BuilderElements.cs
- CompiledRegexRunnerFactory.cs
- WebBrowserNavigatingEventHandler.cs
- JpegBitmapEncoder.cs
- OdbcDataAdapter.cs
- SynchronizationLockException.cs
- ErasingStroke.cs
- Column.cs
- HtmlTableCellCollection.cs
- CharStorage.cs
- _Rfc2616CacheValidators.cs
- NamedPipeConnectionPoolSettings.cs
- PropertyItemInternal.cs
- XmlSerializerSection.cs
- SimplePropertyEntry.cs
- WebBaseEventKeyComparer.cs
- PersistenceMetadataNamespace.cs
- StickyNoteAnnotations.cs
- PowerStatus.cs
- SQLDecimalStorage.cs
- RouteItem.cs
- ToolboxComponentsCreatingEventArgs.cs
- _ListenerRequestStream.cs
- ThaiBuddhistCalendar.cs
- Message.cs
- SchemaCollectionCompiler.cs
- CompositeCollection.cs
- MethodBuilderInstantiation.cs
- ObjectView.cs
- DetailsView.cs
- TableProvider.cs
- ValueExpressions.cs
- KeySplineConverter.cs
- ThreadStaticAttribute.cs
- CommandConverter.cs