Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / CustomCategoryAttribute.cs / 1305600 / CustomCategoryAttribute.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using MS.Internal.PresentationCore; namespace MS.Internal { ////// Allows for localizing custom categories. /// ////// This class could be shared amongst any of the assemblies if desired. /// internal sealed class CustomCategoryAttribute : CategoryAttribute { internal CustomCategoryAttribute() : base() { } internal CustomCategoryAttribute(string category) : base(category) { } protected override string GetLocalizedString(string value) { string s = SR.Get(value); if (s != null) { return s; } else { return value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using MS.Internal.PresentationCore; namespace MS.Internal { ////// Allows for localizing custom categories. /// ////// This class could be shared amongst any of the assemblies if desired. /// internal sealed class CustomCategoryAttribute : CategoryAttribute { internal CustomCategoryAttribute() : base() { } internal CustomCategoryAttribute(string category) : base(category) { } protected override string GetLocalizedString(string value) { string s = SR.Get(value); if (s != null) { return s; } else { return value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DirectoryLocalQuery.cs
- SrgsToken.cs
- SizeAnimationBase.cs
- TableAdapterManagerHelper.cs
- EntityDataSourceDesignerHelper.cs
- FixedSOMTableRow.cs
- AttachedPropertiesService.cs
- DbConnectionPoolCounters.cs
- DelegatingConfigHost.cs
- ProfileManager.cs
- DropSource.cs
- ParagraphResult.cs
- ClrProviderManifest.cs
- TextRenderer.cs
- WindowsGraphics.cs
- TextEncodedRawTextWriter.cs
- SqlRetyper.cs
- ExtractorMetadata.cs
- TimeZone.cs
- HttpPostServerProtocol.cs
- UdpSocket.cs
- WindowsTitleBar.cs
- ConstrainedDataObject.cs
- ApplyImportsAction.cs
- ProcessThread.cs
- BaseTemplateBuildProvider.cs
- ClipboardData.cs
- XmlSchemaCompilationSettings.cs
- UInt64Storage.cs
- ConstructorBuilder.cs
- WCFModelStrings.Designer.cs
- Int16.cs
- RoleGroupCollection.cs
- ListView.cs
- newinstructionaction.cs
- FileDialogPermission.cs
- PolicyStatement.cs
- WindowsComboBox.cs
- ToolStripContainer.cs
- UriParserTemplates.cs
- ParseElementCollection.cs
- ButtonColumn.cs
- _NetRes.cs
- DataPointer.cs
- OutputScopeManager.cs
- FontEmbeddingManager.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- StorageEntitySetMapping.cs
- XPathSelectionIterator.cs
- SqlProfileProvider.cs
- Configuration.cs
- DataMisalignedException.cs
- DbMetaDataColumnNames.cs
- ApplicationFileParser.cs
- KeyNotFoundException.cs
- PtsHelper.cs
- ActivityExecutionContext.cs
- FlagPanel.cs
- UnsafeNativeMethods.cs
- SessionState.cs
- IndentTextWriter.cs
- ConstructorBuilder.cs
- XmlWrappingReader.cs
- AuthenticationConfig.cs
- ItemContainerProviderWrapper.cs
- PropertyPathWorker.cs
- Transform.cs
- ProcessActivityTreeOptions.cs
- ControlType.cs
- ToolStripRenderEventArgs.cs
- ValidationErrorEventArgs.cs
- ListViewUpdateEventArgs.cs
- DiscoveryDocumentSerializer.cs
- NonBatchDirectoryCompiler.cs
- NonVisualControlAttribute.cs
- StyleModeStack.cs
- RuleInfoComparer.cs
- TrackBar.cs
- GestureRecognizer.cs
- ZoneMembershipCondition.cs
- SmtpClient.cs
- OdbcParameter.cs
- SiteMembershipCondition.cs
- ResolveCriteria.cs
- DesignerWebPartChrome.cs
- FormClosedEvent.cs
- DataGridViewBand.cs
- Roles.cs
- CrossSiteScriptingValidation.cs
- StylusTip.cs
- DataSourceCacheDurationConverter.cs
- TextSearch.cs
- mediapermission.cs
- CompensationHandlingFilter.cs
- ScaleTransform.cs
- ParallelEnumerableWrapper.cs
- SourceFilter.cs
- DefaultBindingPropertyAttribute.cs
- RoleManagerEventArgs.cs
- SystemException.cs