Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlTableRowCollection.cs
- GCHandleCookieTable.cs
- printdlgexmarshaler.cs
- OdbcEnvironmentHandle.cs
- X509SecurityTokenParameters.cs
- SqlDataSourceConfigureSelectPanel.cs
- XPathAncestorIterator.cs
- TrackingMemoryStreamFactory.cs
- CustomErrorsSection.cs
- XmlDataSource.cs
- BaseParser.cs
- DataGridViewCellConverter.cs
- ViewCellSlot.cs
- BindingContext.cs
- StorageMappingItemCollection.cs
- QuadraticBezierSegment.cs
- NumberFormatInfo.cs
- ControlCodeDomSerializer.cs
- SectionRecord.cs
- WebResourceUtil.cs
- Vector.cs
- ProcessModuleCollection.cs
- BaseCollection.cs
- ping.cs
- SqlDataSourceSelectingEventArgs.cs
- LabelEditEvent.cs
- AuthenticationException.cs
- GridViewCellAutomationPeer.cs
- NumericUpDownAcceleration.cs
- FixedPageProcessor.cs
- DynamicDataRouteHandler.cs
- XmlSchemaSet.cs
- TemplateControlBuildProvider.cs
- ObjectDataSourceDisposingEventArgs.cs
- IconConverter.cs
- RegexCapture.cs
- RTLAwareMessageBox.cs
- GPRECT.cs
- UidManager.cs
- BuilderInfo.cs
- SkipStoryboardToFill.cs
- EpmContentDeSerializerBase.cs
- ExpressionPrefixAttribute.cs
- SslSecurityTokenParameters.cs
- GC.cs
- PenThread.cs
- LineInfo.cs
- GridEntryCollection.cs
- _Semaphore.cs
- DataSourceListEditor.cs
- ComponentDispatcherThread.cs
- OlePropertyStructs.cs
- EventLogLink.cs
- SoapReflectionImporter.cs
- WebPartZoneBase.cs
- SchemaElementLookUpTableEnumerator.cs
- AppDomain.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Single.cs
- StateMachineWorkflowDesigner.cs
- MailDefinition.cs
- ToolStripSeparatorRenderEventArgs.cs
- BulletedListEventArgs.cs
- XomlSerializationHelpers.cs
- BuildDependencySet.cs
- ImageListDesigner.cs
- HttpListenerResponse.cs
- UnsafeNativeMethods.cs
- RawStylusSystemGestureInputReport.cs
- ElementsClipboardData.cs
- ServiceConfigurationTraceRecord.cs
- NotSupportedException.cs
- CodeTypeOfExpression.cs
- ObjectParameter.cs
- OleDbConnection.cs
- UIElementParagraph.cs
- Encoder.cs
- BamlRecordReader.cs
- ParallelTimeline.cs
- XmlSchemas.cs
- Style.cs
- XmlNodeComparer.cs
- StringExpressionSet.cs
- NativeCompoundFileAPIs.cs
- TableStyle.cs
- SchemaCollectionCompiler.cs
- RawStylusInput.cs
- SelectedGridItemChangedEvent.cs
- TemplatedMailWebEventProvider.cs
- XPathNodeList.cs
- PerspectiveCamera.cs
- SymDocumentType.cs
- TemplateField.cs
- SafeNativeMethods.cs
- DesignBindingConverter.cs
- ContractBase.cs
- TypeValidationEventArgs.cs
- InputBuffer.cs
- BodyGlyph.cs
- BaseTemplateParser.cs