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
- ListItemParagraph.cs
- HijriCalendar.cs
- DataService.cs
- ImageAttributes.cs
- CachedPathData.cs
- GridViewPageEventArgs.cs
- ListViewCommandEventArgs.cs
- AnimationException.cs
- HttpRuntime.cs
- PersonalizationState.cs
- ToolboxItemCollection.cs
- HttpContextWrapper.cs
- AsymmetricSignatureDeformatter.cs
- AtomServiceDocumentSerializer.cs
- CacheOutputQuery.cs
- Options.cs
- ProcessHost.cs
- SocketPermission.cs
- XmlKeywords.cs
- OutputWindow.cs
- SplayTreeNode.cs
- EntityDataSourceSelectingEventArgs.cs
- SiteMapDataSourceView.cs
- TransactionWaitAsyncResult.cs
- _BaseOverlappedAsyncResult.cs
- securitycriticaldataClass.cs
- XmlSchemaComplexContentExtension.cs
- Assembly.cs
- RelationshipNavigation.cs
- FillErrorEventArgs.cs
- ApplicationSecurityInfo.cs
- RemotingConfigParser.cs
- SQLBinary.cs
- ClientSettingsSection.cs
- SoapAttributeAttribute.cs
- OAVariantLib.cs
- MultiTargetingUtil.cs
- CategoriesDocumentFormatter.cs
- AnonymousIdentificationModule.cs
- JournalEntryStack.cs
- CatalogPartCollection.cs
- ValidationEventArgs.cs
- peernodestatemanager.cs
- DrawingGroupDrawingContext.cs
- UnmanagedMemoryAccessor.cs
- RegexReplacement.cs
- TextRange.cs
- DecodeHelper.cs
- SqlTriggerContext.cs
- Schema.cs
- TreeViewImageKeyConverter.cs
- XmlNodeList.cs
- LineServicesRun.cs
- DnsEndpointIdentity.cs
- RegisterResponseInfo.cs
- SelectQueryOperator.cs
- CultureTable.cs
- OletxDependentTransaction.cs
- PriorityQueue.cs
- VideoDrawing.cs
- ComponentDispatcher.cs
- PasswordRecovery.cs
- AppDomainManager.cs
- DropShadowEffect.cs
- Soap.cs
- OSFeature.cs
- TreeWalker.cs
- TabControlCancelEvent.cs
- DataObject.cs
- FormatException.cs
- KeyGesture.cs
- ProtocolsConfigurationEntry.cs
- ListViewCommandEventArgs.cs
- ObjectDataSourceChooseMethodsPanel.cs
- EnumerableRowCollection.cs
- ListViewContainer.cs
- DbExpressionVisitor_TResultType.cs
- SafeTimerHandle.cs
- DetailsViewPageEventArgs.cs
- MobileControlsSectionHandler.cs
- EncryptRequest.cs
- Span.cs
- RequestUriProcessor.cs
- UriWriter.cs
- XPathParser.cs
- ValidatorCollection.cs
- ResXDataNode.cs
- DateTimeParse.cs
- x509utils.cs
- PersistenceException.cs
- AddInSegmentDirectoryNotFoundException.cs
- CaseInsensitiveHashCodeProvider.cs
- PrefixQName.cs
- DataGridTableCollection.cs
- WsdlImporterElementCollection.cs
- ScriptManager.cs
- URI.cs
- StyleSheetRefUrlEditor.cs
- MarshalByRefObject.cs
- SiteMapPath.cs