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
- XmlSchemaIdentityConstraint.cs
- DataGridViewImageColumn.cs
- IntegerValidator.cs
- TextElementEnumerator.cs
- LZCodec.cs
- XmlSerializerVersionAttribute.cs
- ExtensionMethods.cs
- RotateTransform3D.cs
- AesCryptoServiceProvider.cs
- XamlParser.cs
- RightsManagementPermission.cs
- CompoundFileDeflateTransform.cs
- VolatileResourceManager.cs
- ViewManager.cs
- NativeRightsManagementAPIsStructures.cs
- XamlWriter.cs
- ApplicationSecurityInfo.cs
- CompilationSection.cs
- EventLogPermissionEntryCollection.cs
- XmlSignificantWhitespace.cs
- DetailsViewInsertEventArgs.cs
- SerializationEventsCache.cs
- EntityContainer.cs
- HebrewNumber.cs
- FontStyle.cs
- FormatVersion.cs
- QuaternionConverter.cs
- BindingsCollection.cs
- ProcessInfo.cs
- PropertyTabAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- TextDecorationCollectionConverter.cs
- EventLog.cs
- HttpResponseHeader.cs
- Marshal.cs
- ReadOnlyPermissionSet.cs
- DoubleLink.cs
- HttpCachePolicyBase.cs
- SQLMembershipProvider.cs
- DetailsViewRowCollection.cs
- Material.cs
- AvTrace.cs
- TripleDESCryptoServiceProvider.cs
- EncoderBestFitFallback.cs
- _ProxyRegBlob.cs
- ParameterElement.cs
- XmlSerializationReader.cs
- Transform.cs
- TableCellAutomationPeer.cs
- ConsumerConnectionPoint.cs
- WindowsListBox.cs
- OrderToken.cs
- SubqueryRules.cs
- EntityChangedParams.cs
- HotSpot.cs
- DesignSurfaceCollection.cs
- VoiceInfo.cs
- XslAst.cs
- MailAddress.cs
- AttachedAnnotationChangedEventArgs.cs
- DbExpressionBuilder.cs
- BinaryObjectInfo.cs
- CompletionCallbackWrapper.cs
- GenericParameterDataContract.cs
- WsdlParser.cs
- ResetableIterator.cs
- InkCollectionBehavior.cs
- DataGridAutoFormatDialog.cs
- DeflateStreamAsyncResult.cs
- SqlProviderUtilities.cs
- TemplatedWizardStep.cs
- ControlCollection.cs
- BinaryVersion.cs
- NonSerializedAttribute.cs
- Configuration.cs
- StructuredTypeEmitter.cs
- SystemUnicastIPAddressInformation.cs
- ACE.cs
- NumericUpDown.cs
- WebPartHelpVerb.cs
- XDeferredAxisSource.cs
- SerialPinChanges.cs
- DependencyProperty.cs
- AutomationIdentifierGuids.cs
- EncodingInfo.cs
- DotExpr.cs
- SymbolType.cs
- COAUTHINFO.cs
- VideoDrawing.cs
- OutputCacheProfile.cs
- StringInfo.cs
- XmlCustomFormatter.cs
- XPathPatternBuilder.cs
- MenuItemStyle.cs
- NavigationHelper.cs
- HttpListenerContext.cs
- XsdValidatingReader.cs
- ArglessEventHandlerProxy.cs
- PersonalizableTypeEntry.cs
- WriterOutput.cs