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
- PKCS1MaskGenerationMethod.cs
- NameTable.cs
- Module.cs
- XmlAtomicValue.cs
- ExtendedProtectionPolicyElement.cs
- HelpOperationInvoker.cs
- DoubleLinkListEnumerator.cs
- FlowDocumentFormatter.cs
- EdmScalarPropertyAttribute.cs
- Token.cs
- ExpressionEditor.cs
- FixedFlowMap.cs
- ScriptingProfileServiceSection.cs
- AutomationEvent.cs
- PropertyCollection.cs
- BitmapSource.cs
- PageTrueTypeFont.cs
- MessageLogger.cs
- WebControlsSection.cs
- CopyNodeSetAction.cs
- SignatureHelper.cs
- AffineTransform3D.cs
- RegisteredScript.cs
- ObjectReferenceStack.cs
- MarkupProperty.cs
- BitmapScalingModeValidation.cs
- PortCache.cs
- IdleTimeoutMonitor.cs
- ContentFileHelper.cs
- ConvertTextFrag.cs
- TemplatePropertyEntry.cs
- Content.cs
- AdRotator.cs
- AdornedElementPlaceholder.cs
- Base64Stream.cs
- ListView.cs
- SelectionProviderWrapper.cs
- Column.cs
- ZipIOBlockManager.cs
- ClassDataContract.cs
- XmlTypeAttribute.cs
- Blend.cs
- Positioning.cs
- SamlAssertion.cs
- objectresult_tresulttype.cs
- XmlDataProvider.cs
- GenericAuthenticationEventArgs.cs
- DataPagerFieldCommandEventArgs.cs
- Constants.cs
- WinCategoryAttribute.cs
- DurableInstanceProvider.cs
- QilReplaceVisitor.cs
- TagPrefixCollection.cs
- Html32TextWriter.cs
- MultitargetUtil.cs
- DataGridRowsPresenter.cs
- SqlFileStream.cs
- TemplateBindingExpressionConverter.cs
- ConstNode.cs
- ListParaClient.cs
- QilValidationVisitor.cs
- AspNetCompatibilityRequirementsAttribute.cs
- IdnMapping.cs
- ConstrainedDataObject.cs
- ScaleTransform.cs
- DocumentsTrace.cs
- MatrixTransform3D.cs
- DocumentEventArgs.cs
- CommonDialog.cs
- UpDownBase.cs
- PrimitiveList.cs
- CompoundFileIOPermission.cs
- SrgsSubset.cs
- XmlAutoDetectWriter.cs
- EllipseGeometry.cs
- Msec.cs
- NonBatchDirectoryCompiler.cs
- ReflectionPermission.cs
- ScrollBar.cs
- TextBoxBase.cs
- WebPartConnectionCollection.cs
- ScrollEventArgs.cs
- BufferModeSettings.cs
- ListItem.cs
- FormViewDesigner.cs
- X509Certificate.cs
- RowType.cs
- LinqDataSourceDeleteEventArgs.cs
- PairComparer.cs
- _ScatterGatherBuffers.cs
- TypedTableBase.cs
- MbpInfo.cs
- AttributedMetaModel.cs
- XmlSchemaSimpleContentExtension.cs
- PersonalizationDictionary.cs
- DataGridViewCellStateChangedEventArgs.cs
- EnumMemberAttribute.cs
- IncomingWebResponseContext.cs
- InvokePattern.cs
- InvalidDataException.cs