Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceCategoryAttribute.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Asn1Utilities.cs
- COSERVERINFO.cs
- _BufferOffsetSize.cs
- RepeaterCommandEventArgs.cs
- FixedHighlight.cs
- SupportingTokenDuplexChannel.cs
- OpenTypeLayout.cs
- CommentEmitter.cs
- FacetChecker.cs
- DataGridHelper.cs
- ArrayHelper.cs
- NativeCompoundFileAPIs.cs
- EntityDataSourceMemberPath.cs
- GeometryGroup.cs
- CompModSwitches.cs
- PageAsyncTaskManager.cs
- TreeView.cs
- DiffuseMaterial.cs
- TypefaceMap.cs
- EntityDataSourceSelectedEventArgs.cs
- TextTreeInsertUndoUnit.cs
- ClipboardProcessor.cs
- Decorator.cs
- LayoutEngine.cs
- DropTarget.cs
- ManifestResourceInfo.cs
- GenericRootAutomationPeer.cs
- WebHttpBinding.cs
- XmlAttributeOverrides.cs
- HwndStylusInputProvider.cs
- LocalBuilder.cs
- Expander.cs
- CfgArc.cs
- TypeTypeConverter.cs
- XsltConvert.cs
- WebPartConnectionCollection.cs
- DBCommandBuilder.cs
- XmlArrayItemAttribute.cs
- HtmlFormWrapper.cs
- PersonalizableAttribute.cs
- PieceNameHelper.cs
- SatelliteContractVersionAttribute.cs
- BitSet.cs
- RandomNumberGenerator.cs
- ServiceNotStartedException.cs
- HttpHandlerActionCollection.cs
- basecomparevalidator.cs
- ErrorInfoXmlDocument.cs
- ToolStripContentPanelRenderEventArgs.cs
- FrameworkElementFactory.cs
- UpDownBase.cs
- ProviderCollection.cs
- MdiWindowListStrip.cs
- ButtonField.cs
- XmlLinkedNode.cs
- ReadOnlyObservableCollection.cs
- PowerModeChangedEventArgs.cs
- TemplatePartAttribute.cs
- MessageSecurityVersion.cs
- CompiledXpathExpr.cs
- XmlMapping.cs
- ScrollProviderWrapper.cs
- AppDomainAttributes.cs
- HierarchicalDataSourceDesigner.cs
- Clipboard.cs
- ReachDocumentReferenceSerializerAsync.cs
- TagNameToTypeMapper.cs
- NativeActivityFaultContext.cs
- TimeoutHelper.cs
- SafeFileMappingHandle.cs
- StorageSetMapping.cs
- DataBoundLiteralControl.cs
- Dump.cs
- InputProviderSite.cs
- InstanceData.cs
- ScrollProperties.cs
- EntityContainer.cs
- BulletDecorator.cs
- __FastResourceComparer.cs
- AssemblyBuilder.cs
- StateChangeEvent.cs
- TextTreeDeleteContentUndoUnit.cs
- ResourceAttributes.cs
- HMACSHA256.cs
- IDictionary.cs
- BitmapEffectInputConnector.cs
- _DynamicWinsockMethods.cs
- StorageTypeMapping.cs
- ToolTipAutomationPeer.cs
- AnonymousIdentificationModule.cs
- AbstractExpressions.cs
- CellPartitioner.cs
- FormsAuthenticationModule.cs
- AttributeProviderAttribute.cs
- SqlServices.cs
- ObjectPersistData.cs
- EditingCommands.cs
- FormView.cs
- NameObjectCollectionBase.cs
- SubpageParaClient.cs