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
- TcpPortSharing.cs
- SignedXml.cs
- Bitmap.cs
- DataGrid.cs
- ZipIOLocalFileHeader.cs
- TreeView.cs
- WebControlAdapter.cs
- UpDownEvent.cs
- UIElementParaClient.cs
- SqlFacetAttribute.cs
- DependencyPropertyKey.cs
- RtfControls.cs
- PrivacyNoticeElement.cs
- RIPEMD160.cs
- ComboBoxItem.cs
- Span.cs
- OracleDataAdapter.cs
- LiteralText.cs
- ExpandableObjectConverter.cs
- GrammarBuilderDictation.cs
- UTF7Encoding.cs
- DelegateSerializationHolder.cs
- LicFileLicenseProvider.cs
- SingleConverter.cs
- RawStylusInput.cs
- NamespaceEmitter.cs
- Screen.cs
- ProtocolViolationException.cs
- DoubleLinkList.cs
- PerformanceCounterPermission.cs
- OleDbMetaDataFactory.cs
- DataGridBoundColumn.cs
- ScrollData.cs
- SecUtil.cs
- RecognizerStateChangedEventArgs.cs
- UIInitializationException.cs
- InternalConfigHost.cs
- SQLStringStorage.cs
- ItemChangedEventArgs.cs
- SafeCryptContextHandle.cs
- DataListItemEventArgs.cs
- CheckBoxBaseAdapter.cs
- TextRunTypographyProperties.cs
- SyndicationSerializer.cs
- MarshalByValueComponent.cs
- QueryContinueDragEvent.cs
- NegotiateStream.cs
- FileFormatException.cs
- Transaction.cs
- ToolStripRenderer.cs
- ComponentChangedEvent.cs
- TypeToArgumentTypeConverter.cs
- BitmapEffectCollection.cs
- SchemaImporterExtension.cs
- RepeatButton.cs
- TextComposition.cs
- HtmlTable.cs
- ItemsControl.cs
- ManagedWndProcTracker.cs
- ExpressionEditorAttribute.cs
- TreeSet.cs
- DataGridViewCheckBoxCell.cs
- OdbcStatementHandle.cs
- CodeCompileUnit.cs
- XmlIlVisitor.cs
- SmiRecordBuffer.cs
- FileRegion.cs
- AuthorizationRuleCollection.cs
- DebuggerAttributes.cs
- ObjectRef.cs
- WindowPattern.cs
- QueryCacheManager.cs
- MultiBindingExpression.cs
- WebPartRestoreVerb.cs
- OperatingSystem.cs
- CursorInteropHelper.cs
- GuidTagList.cs
- ExpandedWrapper.cs
- VoiceSynthesis.cs
- ToggleProviderWrapper.cs
- ObjectCloneHelper.cs
- InternalConfigRoot.cs
- LambdaCompiler.Logical.cs
- TextWriter.cs
- OutOfMemoryException.cs
- XomlCompilerError.cs
- StringUtil.cs
- CommandManager.cs
- SynchronizedInputPattern.cs
- WSHttpSecurity.cs
- wgx_render.cs
- PolyLineSegmentFigureLogic.cs
- SqlClientWrapperSmiStream.cs
- ToggleButton.cs
- RsaKeyIdentifierClause.cs
- KnowledgeBase.cs
- PersistChildrenAttribute.cs
- TakeOrSkipQueryOperator.cs
- GenericPrincipal.cs
- SHA256.cs