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
- SqlBuffer.cs
- HyperLinkColumn.cs
- VirtualDirectoryMappingCollection.cs
- Function.cs
- XmlDesigner.cs
- COM2ColorConverter.cs
- StringComparer.cs
- QilVisitor.cs
- RelationshipDetailsRow.cs
- DataGridItem.cs
- WarningException.cs
- RuntimeResourceSet.cs
- TextEditorDragDrop.cs
- ValidatorUtils.cs
- EdgeProfileValidation.cs
- WebPartDeleteVerb.cs
- _BufferOffsetSize.cs
- HtmlInputRadioButton.cs
- SharedUtils.cs
- Char.cs
- Expression.cs
- TextShapeableCharacters.cs
- PropertyHelper.cs
- Serializer.cs
- EventLogEntry.cs
- SqlDataSourceCache.cs
- DataBindingCollection.cs
- ConfigXmlSignificantWhitespace.cs
- FontInfo.cs
- UnorderedHashRepartitionStream.cs
- remotingproxy.cs
- DbConnectionStringBuilder.cs
- OutKeywords.cs
- UIPropertyMetadata.cs
- DataViewManager.cs
- NetSectionGroup.cs
- XDeferredAxisSource.cs
- StreamUpdate.cs
- OutputCacheSettingsSection.cs
- userdatakeys.cs
- ListSourceHelper.cs
- EntityStoreSchemaGenerator.cs
- ViewGenResults.cs
- SoapParser.cs
- AppearanceEditorPart.cs
- WebPartMenuStyle.cs
- Journal.cs
- ThreadStateException.cs
- ColumnCollection.cs
- Configuration.cs
- UIPermission.cs
- HtmlControlPersistable.cs
- DynamicValueConverter.cs
- DesignerUtility.cs
- WorkflowWebHostingModule.cs
- SerializationInfo.cs
- UnsafeNativeMethods.cs
- DesignOnlyAttribute.cs
- Pair.cs
- Trace.cs
- ObjectContext.cs
- XmlValidatingReader.cs
- SystemInfo.cs
- LabelLiteral.cs
- AutomationPatternInfo.cs
- QuaternionAnimationUsingKeyFrames.cs
- Debug.cs
- ServiceHostFactory.cs
- ItemsPanelTemplate.cs
- DataSourceIDConverter.cs
- ScriptControl.cs
- UndoUnit.cs
- ListBoxItemWrapperAutomationPeer.cs
- EventTrigger.cs
- DataGridViewTextBoxEditingControl.cs
- FrameworkContextData.cs
- PathFigureCollection.cs
- MILUtilities.cs
- CellParaClient.cs
- CodeParameterDeclarationExpressionCollection.cs
- GlyphRunDrawing.cs
- ValidatorCompatibilityHelper.cs
- XmlWriter.cs
- ParameterInfo.cs
- BitmapScalingModeValidation.cs
- MemberRelationshipService.cs
- SerializerWriterEventHandlers.cs
- UntypedNullExpression.cs
- HtmlElementCollection.cs
- GridProviderWrapper.cs
- PopupEventArgs.cs
- SqlUserDefinedAggregateAttribute.cs
- TypedElement.cs
- WpfKnownTypeInvoker.cs
- DBParameter.cs
- InvokeGenerator.cs
- InternalConfigEventArgs.cs
- ProcessThreadCollection.cs
- ToolboxBitmapAttribute.cs
- WebPartTracker.cs