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
- AnchoredBlock.cs
- PrimitiveType.cs
- SortQuery.cs
- BatchWriter.cs
- XmlWrappingReader.cs
- AbsoluteQuery.cs
- ControlBuilderAttribute.cs
- ZipIOExtraFieldElement.cs
- CalendarDay.cs
- Parser.cs
- RangeValuePattern.cs
- DrawingCollection.cs
- ClientCultureInfo.cs
- MasterPage.cs
- UIPermission.cs
- AppearanceEditorPart.cs
- RepeaterCommandEventArgs.cs
- DefaultValueMapping.cs
- EntityCommandExecutionException.cs
- BamlLocalizationDictionary.cs
- DependencySource.cs
- NumericExpr.cs
- assemblycache.cs
- ZipIOExtraFieldElement.cs
- FormViewInsertedEventArgs.cs
- LinqDataSourceDisposeEventArgs.cs
- WebPartUtil.cs
- ObfuscateAssemblyAttribute.cs
- SoapSchemaImporter.cs
- InnerItemCollectionView.cs
- SchemaReference.cs
- UnsafeCollabNativeMethods.cs
- Subset.cs
- TrailingSpaceComparer.cs
- X509SecurityTokenAuthenticator.cs
- DataSourceXmlClassAttribute.cs
- NavigationPropertyEmitter.cs
- WebAdminConfigurationHelper.cs
- RtType.cs
- TemplateBindingExpression.cs
- FormViewDesigner.cs
- MultilineStringConverter.cs
- BindingExpressionUncommonField.cs
- RegexRunner.cs
- CachedCompositeFamily.cs
- SecurityElement.cs
- MSAANativeProvider.cs
- EntityModelSchemaGenerator.cs
- BookmarkUndoUnit.cs
- EntityDataSourceContainerNameConverter.cs
- CorruptingExceptionCommon.cs
- ViewPort3D.cs
- DnsPermission.cs
- EntitySqlQueryCacheEntry.cs
- HttpCookieCollection.cs
- ReflectionPermission.cs
- CompilerGeneratedAttribute.cs
- LinqDataSourceSelectEventArgs.cs
- ActivityDesignerLayoutSerializers.cs
- GPRECT.cs
- TypeToken.cs
- CompressionTracing.cs
- WindowsFont.cs
- Point3DIndependentAnimationStorage.cs
- PeerNeighborManager.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- autovalidator.cs
- Formatter.cs
- pingexception.cs
- DataServiceClientException.cs
- HtmlInputPassword.cs
- ControlEvent.cs
- WebBodyFormatMessageProperty.cs
- parserscommon.cs
- PackageProperties.cs
- MetafileHeaderWmf.cs
- Pkcs9Attribute.cs
- RtfFormatStack.cs
- TypeBuilder.cs
- DesignTimeParseData.cs
- PassportPrincipal.cs
- CharKeyFrameCollection.cs
- DoubleCollectionValueSerializer.cs
- GraphicsPathIterator.cs
- remotingproxy.cs
- RoutedPropertyChangedEventArgs.cs
- Rotation3DAnimation.cs
- SiteMapNodeItemEventArgs.cs
- DeploymentExceptionMapper.cs
- GetPageNumberCompletedEventArgs.cs
- Vector3DAnimationUsingKeyFrames.cs
- HostedElements.cs
- BooleanExpr.cs
- BindStream.cs
- PageBorderless.cs
- ClipboardProcessor.cs
- IsolationInterop.cs
- ConsoleCancelEventArgs.cs
- DelimitedListTraceListener.cs
- ManagedFilter.cs