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
- Dynamic.cs
- DataChangedEventManager.cs
- RuleSettingsCollection.cs
- ServiceBuildProvider.cs
- arabicshape.cs
- XmlFileEditor.cs
- HostingMessageProperty.cs
- FormattedText.cs
- IgnoreSectionHandler.cs
- ContainerUtilities.cs
- Visitors.cs
- ExpressionBindingCollection.cs
- TrustLevelCollection.cs
- ScrollEvent.cs
- AssociatedControlConverter.cs
- SqlUserDefinedTypeAttribute.cs
- ObjectQueryExecutionPlan.cs
- ImageDrawing.cs
- PaperSize.cs
- cookiecontainer.cs
- ExecutionContext.cs
- SqlDataSourceSummaryPanel.cs
- Page.cs
- StylusCollection.cs
- DoubleSumAggregationOperator.cs
- CaseInsensitiveHashCodeProvider.cs
- PathTooLongException.cs
- DataGridViewHeaderCell.cs
- ModulesEntry.cs
- UnicodeEncoding.cs
- ColorMatrix.cs
- IChannel.cs
- HttpProtocolReflector.cs
- Win32KeyboardDevice.cs
- NetworkAddressChange.cs
- ChangeConflicts.cs
- ExtensibleClassFactory.cs
- XmlElementCollection.cs
- NextPreviousPagerField.cs
- _TLSstream.cs
- SQLSingleStorage.cs
- SchemaConstraints.cs
- XmlTextReaderImplHelpers.cs
- RegexWorker.cs
- NumberFormatInfo.cs
- InvokePatternIdentifiers.cs
- SortQuery.cs
- CreateUserWizardAutoFormat.cs
- Geometry3D.cs
- DrawingImage.cs
- EventDrivenDesigner.cs
- SortDescription.cs
- BindToObject.cs
- NameGenerator.cs
- WebPartZoneCollection.cs
- ToolBar.cs
- SchemaNotation.cs
- ControlCollection.cs
- _ContextAwareResult.cs
- X509Chain.cs
- SortFieldComparer.cs
- NegationPusher.cs
- CancelEventArgs.cs
- HostedTransportConfigurationManager.cs
- MimeWriter.cs
- SingleStorage.cs
- VirtualPath.cs
- TextParentUndoUnit.cs
- StreamUpgradeProvider.cs
- SqlTypeConverter.cs
- BinaryParser.cs
- DataGridViewCellLinkedList.cs
- RefExpr.cs
- TextPattern.cs
- MethodResolver.cs
- LocatorPartList.cs
- FileSystemEnumerable.cs
- SimpleMailWebEventProvider.cs
- BindingCompleteEventArgs.cs
- TraversalRequest.cs
- InternalConfigSettingsFactory.cs
- HtmlGenericControl.cs
- ProcessThread.cs
- XmlElementAttributes.cs
- DispatcherObject.cs
- MobileListItem.cs
- ObjectStateEntry.cs
- ValueProviderWrapper.cs
- APCustomTypeDescriptor.cs
- dsa.cs
- FixedSOMTable.cs
- XmlDocumentSurrogate.cs
- DataObjectAttribute.cs
- StyleCollectionEditor.cs
- ExtentCqlBlock.cs
- DATA_BLOB.cs
- ColorDialog.cs
- DbDeleteCommandTree.cs
- MissingSatelliteAssemblyException.cs
- Listbox.cs