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
- TimeSpanOrInfiniteValidator.cs
- basenumberconverter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- MULTI_QI.cs
- Resources.Designer.cs
- DesignerFrame.cs
- SqlDataSourceConfigureFilterForm.cs
- XsltSettings.cs
- HScrollProperties.cs
- InternalRelationshipCollection.cs
- OdbcTransaction.cs
- CopyEncoder.cs
- unitconverter.cs
- BasicSecurityProfileVersion.cs
- ContentDisposition.cs
- DrawingImage.cs
- DbgUtil.cs
- NoneExcludedImageIndexConverter.cs
- ToolboxComponentsCreatedEventArgs.cs
- ElementNotEnabledException.cs
- LayoutExceptionEventArgs.cs
- ProfileSettingsCollection.cs
- TerminatorSinks.cs
- TypeLibConverter.cs
- QilTernary.cs
- SQLMoney.cs
- VirtualDirectoryMapping.cs
- CellTreeNodeVisitors.cs
- CaseCqlBlock.cs
- XmlReaderDelegator.cs
- ProjectionCamera.cs
- CompiledRegexRunner.cs
- DiscoveryReference.cs
- ListViewInsertionMark.cs
- ApplicationId.cs
- BitArray.cs
- XhtmlStyleClass.cs
- LocatorBase.cs
- Util.cs
- BinaryWriter.cs
- JavascriptCallbackResponseProperty.cs
- TextClipboardData.cs
- SecurityContext.cs
- GridViewRowCollection.cs
- RoleServiceManager.cs
- ImplicitInputBrush.cs
- DictionaryGlobals.cs
- Document.cs
- AutomationEvent.cs
- BaseProcessor.cs
- CssClassPropertyAttribute.cs
- ResourcesChangeInfo.cs
- XmlRawWriter.cs
- NativeWindow.cs
- SimpleHandlerFactory.cs
- DebugControllerThread.cs
- PropertyMapper.cs
- NamespaceQuery.cs
- ProcessHostServerConfig.cs
- WebPartChrome.cs
- EntityDataSourceSelectedEventArgs.cs
- MenuBindingsEditor.cs
- RtType.cs
- DateTimeFormatInfoScanner.cs
- Constants.cs
- ExpressionPrefixAttribute.cs
- FlowDocumentView.cs
- UdpSocket.cs
- LayoutDump.cs
- NewArray.cs
- ElementMarkupObject.cs
- SettingsPropertyIsReadOnlyException.cs
- PackageRelationshipCollection.cs
- WMIGenerator.cs
- XPathDocumentBuilder.cs
- SectionUpdates.cs
- XPathException.cs
- SplitterDesigner.cs
- CalendarDesigner.cs
- DrawingVisualDrawingContext.cs
- CodeGenerator.cs
- CompoundFileStorageReference.cs
- CancelEventArgs.cs
- ImmutableDispatchRuntime.cs
- ConfigXmlWhitespace.cs
- XsltOutput.cs
- DelegatedStream.cs
- FileLevelControlBuilderAttribute.cs
- MaskInputRejectedEventArgs.cs
- XslAst.cs
- ConfigPathUtility.cs
- DefaultProxySection.cs
- SimpleRecyclingCache.cs
- PolicyChain.cs
- SoapExtensionImporter.cs
- EditorPartDesigner.cs
- XmlSchemaIdentityConstraint.cs
- PublishLicense.cs
- Matrix.cs
- HierarchicalDataSourceControl.cs