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
- XmlElement.cs
- MessageHeaderDescriptionCollection.cs
- InternalResources.cs
- StateMachineWorkflowInstance.cs
- DeploymentSectionCache.cs
- ProviderConnectionPointCollection.cs
- SignedInfo.cs
- ColumnHeader.cs
- PeerCollaborationPermission.cs
- AmbientLight.cs
- coordinator.cs
- TypeDescriptor.cs
- Atom10FormatterFactory.cs
- TextTreeRootTextBlock.cs
- XsltSettings.cs
- QueryCacheKey.cs
- PanelStyle.cs
- SoapBinding.cs
- ActionMismatchAddressingException.cs
- WebPartDescription.cs
- Geometry.cs
- MailSettingsSection.cs
- ValidationHelper.cs
- OwnerDrawPropertyBag.cs
- SelectionChangedEventArgs.cs
- OracleBoolean.cs
- streamingZipPartStream.cs
- Vector3DKeyFrameCollection.cs
- ServerIdentity.cs
- EnumValidator.cs
- DataKeyArray.cs
- ExtensionFile.cs
- XmlImplementation.cs
- QilParameter.cs
- SecureConversationServiceCredential.cs
- ObjectRef.cs
- DesignerSerializationOptionsAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- FontFamily.cs
- DbSourceParameterCollection.cs
- OleDbCommand.cs
- DummyDataSource.cs
- RangeValueProviderWrapper.cs
- OutOfMemoryException.cs
- Method.cs
- WebUtil.cs
- MultiView.cs
- HtmlShim.cs
- UnaryNode.cs
- ObjectViewListener.cs
- ImportContext.cs
- ObjectDisposedException.cs
- ListenerSessionConnectionReader.cs
- DataViewListener.cs
- UrlPropertyAttribute.cs
- ListViewItemMouseHoverEvent.cs
- SimpleHandlerBuildProvider.cs
- XmlElementCollection.cs
- bindurihelper.cs
- MSAANativeProvider.cs
- ActivityExecutionContextCollection.cs
- NegotiateStream.cs
- TableLayoutPanelCellPosition.cs
- UriExt.cs
- ParagraphVisual.cs
- ValidationErrorEventArgs.cs
- LayoutEvent.cs
- DbProviderManifest.cs
- FullTextLine.cs
- dsa.cs
- Transform.cs
- CodeMemberEvent.cs
- TabletDevice.cs
- RuleAttributes.cs
- RegexTypeEditor.cs
- ImageInfo.cs
- SelectiveScrollingGrid.cs
- DocumentGridContextMenu.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- WebPartMenuStyle.cs
- _FtpControlStream.cs
- StrongNameIdentityPermission.cs
- InheritanceAttribute.cs
- DataBindingExpressionBuilder.cs
- OleDbException.cs
- DataGridViewLinkCell.cs
- MobileUserControl.cs
- WebServiceTypeData.cs
- Panel.cs
- ButtonFlatAdapter.cs
- XmlSchemaSimpleContentExtension.cs
- DataServiceQueryOfT.cs
- UserControl.cs
- ExecutionPropertyManager.cs
- TextTreeInsertElementUndoUnit.cs
- HtmlInputRadioButton.cs
- ValidationSummary.cs
- EDesignUtil.cs
- PeerNameRegistration.cs
- RoleGroupCollection.cs