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
- LinqToSqlWrapper.cs
- WindowsFormsSynchronizationContext.cs
- FixedPageProcessor.cs
- CompressedStack.cs
- SqlTypeSystemProvider.cs
- AliasExpr.cs
- ApplicationServiceHelper.cs
- ConfigXmlSignificantWhitespace.cs
- LocalFileSettingsProvider.cs
- RequiredFieldValidator.cs
- ConnectionConsumerAttribute.cs
- LineServices.cs
- SurrogateSelector.cs
- EmptyStringExpandableObjectConverter.cs
- HttpRequestCacheValidator.cs
- SelectedGridItemChangedEvent.cs
- EntityDataSource.cs
- MobileCategoryAttribute.cs
- GeneralTransform3D.cs
- XmlDocumentType.cs
- DataSourceXmlTextReader.cs
- LocatorPart.cs
- FontDialog.cs
- SqlRowUpdatingEvent.cs
- ToolboxItemAttribute.cs
- CommonProperties.cs
- ReliabilityContractAttribute.cs
- SyndicationSerializer.cs
- Configuration.cs
- SizeKeyFrameCollection.cs
- WebPartEditorApplyVerb.cs
- AxisAngleRotation3D.cs
- XmlSchemaProviderAttribute.cs
- WebPartMovingEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- ExpressionBindingCollection.cs
- SessionKeyExpiredException.cs
- SetterBaseCollection.cs
- CatalogPart.cs
- ReadOnlyHierarchicalDataSource.cs
- ComboBox.cs
- CreateRefExpr.cs
- ResourceContainer.cs
- HashAlgorithm.cs
- UrlPropertyAttribute.cs
- WebPartVerb.cs
- ZoomPercentageConverter.cs
- XmlMapping.cs
- TextTreeRootTextBlock.cs
- SiteMapSection.cs
- ListViewUpdatedEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PriorityItem.cs
- HttpProfileBase.cs
- UniqueEventHelper.cs
- ParseHttpDate.cs
- WriteableBitmap.cs
- BinaryCommonClasses.cs
- typedescriptorpermissionattribute.cs
- DBDataPermission.cs
- CapabilitiesPattern.cs
- WaitingCursor.cs
- PTUtility.cs
- DtrList.cs
- OTFRasterizer.cs
- Command.cs
- ItemsPresenter.cs
- HttpHostedTransportConfiguration.cs
- RowVisual.cs
- VisualStyleInformation.cs
- HatchBrush.cs
- BitmapEffectState.cs
- ToolboxSnapDragDropEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- Expressions.cs
- OptimisticConcurrencyException.cs
- UserNameSecurityToken.cs
- FlowLayoutSettings.cs
- ExclusiveCanonicalizationTransform.cs
- _SingleItemRequestCache.cs
- BCLDebug.cs
- SolidBrush.cs
- TextTrailingWordEllipsis.cs
- TreeView.cs
- AttachmentService.cs
- Emitter.cs
- XPathSingletonIterator.cs
- WhitespaceSignificantCollectionAttribute.cs
- ResolveResponse.cs
- SelectionManager.cs
- DataTemplate.cs
- EdmTypeAttribute.cs
- InputLanguageEventArgs.cs
- LoadItemsEventArgs.cs
- ellipse.cs
- RelationshipManager.cs
- DataColumnMappingCollection.cs
- Drawing.cs
- InvokeSchedule.cs
- DataGridViewRow.cs