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
- WpfXamlType.cs
- ConnectionManagementElementCollection.cs
- ClientSettingsProvider.cs
- OptimalTextSource.cs
- AuthenticationModulesSection.cs
- ISAPIApplicationHost.cs
- Win32KeyboardDevice.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- RoutedUICommand.cs
- XmlSchemaAnnotated.cs
- SpoolingTaskBase.cs
- ApplicationBuildProvider.cs
- XpsFont.cs
- EventListener.cs
- TreeNodeCollection.cs
- PointLightBase.cs
- DependencyObject.cs
- OracleConnectionFactory.cs
- GridViewAutomationPeer.cs
- IndexedGlyphRun.cs
- GraphicsContext.cs
- BasicKeyConstraint.cs
- JsonReaderDelegator.cs
- Stroke2.cs
- XmlDocumentFragment.cs
- GradientBrush.cs
- MeshGeometry3D.cs
- RoleGroupCollection.cs
- PersonalizationStateInfo.cs
- ResourceType.cs
- RadioButton.cs
- Timer.cs
- RootProjectionNode.cs
- SqlConnectionPoolProviderInfo.cs
- CryptoKeySecurity.cs
- ContainerControl.cs
- OutputCacheProfileCollection.cs
- WebPartConnectionsConfigureVerb.cs
- ImportException.cs
- CheckBoxField.cs
- ProfileSection.cs
- GeneralTransform2DTo3D.cs
- SecurityTokenProvider.cs
- TableAdapterManagerMethodGenerator.cs
- EngineSiteSapi.cs
- PropertyGeneratedEventArgs.cs
- XmlExtensionFunction.cs
- ButtonAutomationPeer.cs
- HtmlInputHidden.cs
- WpfXamlMember.cs
- COM2ExtendedTypeConverter.cs
- UpdateManifestForBrowserApplication.cs
- DesignerSerializationOptionsAttribute.cs
- HostVisual.cs
- SqlCommandSet.cs
- Int32EqualityComparer.cs
- DataObject.cs
- IdnElement.cs
- ChtmlPhoneCallAdapter.cs
- EmptyEnumerator.cs
- OdbcConnectionHandle.cs
- ParameterEditorUserControl.cs
- objectresult_tresulttype.cs
- AuthenticatingEventArgs.cs
- MenuEventArgs.cs
- RegexGroup.cs
- WebPartAddingEventArgs.cs
- SqlDataSourceEnumerator.cs
- RegisteredArrayDeclaration.cs
- XmlSiteMapProvider.cs
- BamlMapTable.cs
- DataGridViewAdvancedBorderStyle.cs
- AdapterUtil.cs
- XPathConvert.cs
- ErrorView.xaml.cs
- CodeTypeOfExpression.cs
- RowToParametersTransformer.cs
- NegationPusher.cs
- DataGridViewComboBoxColumn.cs
- XamlRtfConverter.cs
- SmtpCommands.cs
- EnvironmentPermission.cs
- ObjectAssociationEndMapping.cs
- FixedSOMFixedBlock.cs
- ActivityBuilderXamlWriter.cs
- BmpBitmapEncoder.cs
- DataViewSettingCollection.cs
- Operator.cs
- BufferedGraphicsContext.cs
- DecimalKeyFrameCollection.cs
- StylusButtonCollection.cs
- XamlPointCollectionSerializer.cs
- WorkflowQueue.cs
- HwndSubclass.cs
- ToolStripRenderEventArgs.cs
- MediaTimeline.cs
- CursorConverter.cs
- BindableTemplateBuilder.cs
- FileUtil.cs
- WriteableBitmap.cs