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
- SqlGenericUtil.cs
- MatrixStack.cs
- login.cs
- PageParser.cs
- SqlIdentifier.cs
- LogLogRecordHeader.cs
- Figure.cs
- EventProvider.cs
- TextEvent.cs
- CodeArrayCreateExpression.cs
- XmlSchemaAppInfo.cs
- ScriptIgnoreAttribute.cs
- ProbeDuplexAsyncResult.cs
- ToolTipService.cs
- SimpleType.cs
- MailMessage.cs
- SqlClientPermission.cs
- ToggleButton.cs
- ContainerUtilities.cs
- XmlDeclaration.cs
- KnownTypesHelper.cs
- ObjectItemLoadingSessionData.cs
- RunClient.cs
- AccessDataSourceView.cs
- newinstructionaction.cs
- MarkupExtensionParser.cs
- BuildProvider.cs
- EntityDataSourceSelectedEventArgs.cs
- DocumentApplication.cs
- TransactionInterop.cs
- TypedTableBaseExtensions.cs
- Light.cs
- AspNetSynchronizationContext.cs
- SqlTypeSystemProvider.cs
- WebPartConnectionsEventArgs.cs
- XmlNamespaceMapping.cs
- TransactionTable.cs
- ProfileParameter.cs
- PersonalizationState.cs
- Setter.cs
- ResourcesChangeInfo.cs
- XmlSchemaCompilationSettings.cs
- FormClosingEvent.cs
- BlurBitmapEffect.cs
- ProxyGenerator.cs
- ConsoleTraceListener.cs
- RegexParser.cs
- _SSPISessionCache.cs
- IdentifierElement.cs
- AssemblyName.cs
- MarkupExtensionParser.cs
- ProfileGroupSettings.cs
- SystemTcpStatistics.cs
- XmlDataImplementation.cs
- PageCodeDomTreeGenerator.cs
- HtmlAnchor.cs
- Help.cs
- SafeFileMappingHandle.cs
- HScrollProperties.cs
- mediaeventshelper.cs
- Expression.cs
- EnumerableRowCollection.cs
- EngineSite.cs
- ProcessModelInfo.cs
- JournalEntryStack.cs
- Storyboard.cs
- Hex.cs
- ResourceReferenceExpressionConverter.cs
- HTTPNotFoundHandler.cs
- DirectoryRootQuery.cs
- SubordinateTransaction.cs
- ConnectionConsumerAttribute.cs
- FileDialog_Vista.cs
- ResponseBodyWriter.cs
- CodeComment.cs
- WeakReadOnlyCollection.cs
- RenderTargetBitmap.cs
- TransformationRules.cs
- PathFigureCollectionConverter.cs
- SqlDataSourceConnectionPanel.cs
- QueryExecutionOption.cs
- Size3D.cs
- CSharpCodeProvider.cs
- updatecommandorderer.cs
- Evidence.cs
- KeyboardEventArgs.cs
- UpdatePanel.cs
- ComplusEndpointConfigContainer.cs
- SemaphoreSecurity.cs
- DataFormats.cs
- WebPartMenu.cs
- SubpageParaClient.cs
- BaseTemplateParser.cs
- LocalizationComments.cs
- SettingsBase.cs
- TextParagraph.cs
- HttpProcessUtility.cs
- PageBreakRecord.cs
- GregorianCalendar.cs
- InvalidBodyAccessException.cs