Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ResourceCategoryAttribute.cs / 1305376 / ResourceCategoryAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; using System.Web.Util; [AttributeUsage(AttributeTargets.All)] internal sealed class ResourceCategoryAttribute : CategoryAttribute { internal ResourceCategoryAttribute(string category) : base(category) { } public override object TypeId { get { return typeof(CategoryAttribute); } } protected override string GetLocalizedString(string value) { string localizedValue = base.GetLocalizedString(value); if (localizedValue == null) { localizedValue = AtlasWeb.ResourceManager.GetString("Category_" + value, AtlasWeb.Culture); } // This attribute is internal, and we should never have a missing resource string. // System.Diagnostics.Debug.Assert(localizedValue != null, "All WebForms category attributes should have localized strings. Category '" + value + "' not found."); return localizedValue; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PartialTrustVisibleAssemblyCollection.cs
- HttpWebRequest.cs
- PropertyEmitter.cs
- ExtractCollection.cs
- Transform3D.cs
- ClientSettingsProvider.cs
- OciEnlistContext.cs
- DispatcherSynchronizationContext.cs
- ClientOptions.cs
- PauseStoryboard.cs
- SafeArrayTypeMismatchException.cs
- BinaryWriter.cs
- NativeMethods.cs
- ClientEventManager.cs
- DataGridState.cs
- IISUnsafeMethods.cs
- MILUtilities.cs
- OdbcParameter.cs
- GlyphRunDrawing.cs
- HTTPNotFoundHandler.cs
- StrongNameMembershipCondition.cs
- XamlReaderHelper.cs
- JsonObjectDataContract.cs
- WebPartConnectionsCloseVerb.cs
- DataObject.cs
- DataServiceResponse.cs
- ToolStripItemGlyph.cs
- SelectionPatternIdentifiers.cs
- PlatformCulture.cs
- XmlEntity.cs
- KeyInstance.cs
- TreeView.cs
- WebServiceEnumData.cs
- TextRangeEditTables.cs
- DecoderBestFitFallback.cs
- MimeMultiPart.cs
- XsdBuilder.cs
- AsyncCodeActivityContext.cs
- EdmComplexTypeAttribute.cs
- CommonXSendMessage.cs
- RegexFCD.cs
- CorrelationScope.cs
- XmlSiteMapProvider.cs
- MasterPageCodeDomTreeGenerator.cs
- ObjectConverter.cs
- ColorTransformHelper.cs
- cookieexception.cs
- BadImageFormatException.cs
- Border.cs
- TreeNodeStyle.cs
- TabControlCancelEvent.cs
- CultureInfoConverter.cs
- SHA1Cng.cs
- SecurityDocument.cs
- CodeComment.cs
- PasswordPropertyTextAttribute.cs
- CredentialCache.cs
- StylusSystemGestureEventArgs.cs
- ToolStripRendererSwitcher.cs
- AsymmetricKeyExchangeDeformatter.cs
- ObjectItemLoadingSessionData.cs
- SslSecurityTokenParameters.cs
- HitTestWithPointDrawingContextWalker.cs
- AnimatedTypeHelpers.cs
- FacetDescription.cs
- SmtpReplyReaderFactory.cs
- TabControlEvent.cs
- SQLStringStorage.cs
- ComplexPropertyEntry.cs
- SafeTimerHandle.cs
- SendingRequestEventArgs.cs
- KeyEvent.cs
- DynamicContractTypeBuilder.cs
- IPGlobalProperties.cs
- GridProviderWrapper.cs
- DiagnosticTraceSchemas.cs
- TextTreeTextBlock.cs
- SslStreamSecurityBindingElement.cs
- CorrelationToken.cs
- SystemTcpStatistics.cs
- Cursor.cs
- ConfigurationPropertyCollection.cs
- CodeSnippetExpression.cs
- _IPv4Address.cs
- ParentUndoUnit.cs
- UserControl.cs
- SqlDependencyUtils.cs
- ClockController.cs
- DispatcherProcessingDisabled.cs
- ApplicationInfo.cs
- DataViewManagerListItemTypeDescriptor.cs
- ObjectQueryState.cs
- ThrowHelper.cs
- ClusterRegistryConfigurationProvider.cs
- BindingCollection.cs
- EnumBuilder.cs
- CheckBoxRenderer.cs
- SqlLiftWhereClauses.cs
- WebServiceParameterData.cs
- PrintControllerWithStatusDialog.cs