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
- Control.cs
- ListenerElementsCollection.cs
- MessageFilterException.cs
- SqlClientPermission.cs
- ProjectionPruner.cs
- SHA512.cs
- EntityDataSourceDesigner.cs
- DelegateArgument.cs
- RoutedEventHandlerInfo.cs
- SelfIssuedTokenFactoryCredential.cs
- ImageBrush.cs
- ApplicationSecurityManager.cs
- MemberAccessException.cs
- CompressedStack.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- ImportContext.cs
- TrackingValidationObjectDictionary.cs
- StringUtil.cs
- Crypto.cs
- PartitionerStatic.cs
- NavigationFailedEventArgs.cs
- CodeConditionStatement.cs
- SimpleParser.cs
- JapaneseLunisolarCalendar.cs
- Msec.cs
- DataMemberConverter.cs
- ArrayConverter.cs
- StreamReader.cs
- ActivationArguments.cs
- EventHandlerList.cs
- ListSourceHelper.cs
- WindowsEditBoxRange.cs
- DataGridTextBoxColumn.cs
- SplashScreenNativeMethods.cs
- SchemaTableOptionalColumn.cs
- StyleSheetDesigner.cs
- ColumnReorderedEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- RNGCryptoServiceProvider.cs
- HttpInputStream.cs
- DesignerActionItem.cs
- SystemIcmpV6Statistics.cs
- ReliabilityContractAttribute.cs
- JoinTreeNode.cs
- CurrentChangingEventManager.cs
- FixedSOMPage.cs
- RemotingServices.cs
- HttpHandlerAction.cs
- SamlAuthenticationStatement.cs
- FlowLayoutSettings.cs
- ListViewItemEventArgs.cs
- SwitchLevelAttribute.cs
- XmlDictionaryReaderQuotas.cs
- NativeMsmqMessage.cs
- FixedPageStructure.cs
- X509SubjectKeyIdentifierClause.cs
- CollectionBase.cs
- DataTableReaderListener.cs
- DeviceSpecificChoiceCollection.cs
- EasingKeyFrames.cs
- _NTAuthentication.cs
- MarkupCompilePass2.cs
- BoundColumn.cs
- TdsParserSessionPool.cs
- PageRanges.cs
- SchemaDeclBase.cs
- RegexRunner.cs
- Delay.cs
- ConcurrentDictionary.cs
- DataSourceProvider.cs
- EventLogTraceListener.cs
- AuthenticationServiceManager.cs
- LinkUtilities.cs
- XmlSerializationWriter.cs
- MetadataSource.cs
- SerializationAttributes.cs
- validation.cs
- CompileXomlTask.cs
- BaseWebProxyFinder.cs
- ParagraphVisual.cs
- DocumentApplicationJournalEntry.cs
- EditCommandColumn.cs
- Knowncolors.cs
- PartitionedDataSource.cs
- EntityViewGenerator.cs
- TypedTableHandler.cs
- MappedMetaModel.cs
- DataListGeneralPage.cs
- DataGridViewRow.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- TimeSpanStorage.cs
- LocalizedNameDescriptionPair.cs
- RuntimeConfig.cs
- BitHelper.cs
- HtmlAnchor.cs
- ThreadStartException.cs
- PageSetupDialog.cs
- PeerPresenceInfo.cs
- DefaultMemberAttribute.cs
- xmlformatgeneratorstatics.cs