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
- InternalTypeHelper.cs
- TargetControlTypeCache.cs
- SafeCryptoHandles.cs
- ClientTarget.cs
- Calendar.cs
- EntitySqlQueryState.cs
- PtsPage.cs
- RangeValueProviderWrapper.cs
- SmiMetaDataProperty.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ColorComboBox.cs
- Rights.cs
- HandlerWithFactory.cs
- returneventsaver.cs
- DtdParser.cs
- DataGridViewCellEventArgs.cs
- EnvelopedSignatureTransform.cs
- InkCollectionBehavior.cs
- CustomActivityDesigner.cs
- LinearGradientBrush.cs
- XhtmlConformanceSection.cs
- Baml6ConstructorInfo.cs
- WmpBitmapDecoder.cs
- Highlights.cs
- InputEventArgs.cs
- TextSpanModifier.cs
- HandlerBase.cs
- PropertyChangeTracker.cs
- ServiceNotStartedException.cs
- PocoEntityKeyStrategy.cs
- DataGridItemEventArgs.cs
- EventLogTraceListener.cs
- HttpDictionary.cs
- SerializationStore.cs
- SessionStateModule.cs
- PassportIdentity.cs
- TracingConnectionInitiator.cs
- ExtenderControl.cs
- MatrixTransform3D.cs
- TrustManagerPromptUI.cs
- TaiwanCalendar.cs
- ConnectionConsumerAttribute.cs
- FileDialog.cs
- HtmlContainerControl.cs
- CodeIdentifier.cs
- SafeBitVector32.cs
- WebPartChrome.cs
- XmlWrappingWriter.cs
- FormsAuthenticationUserCollection.cs
- InputLanguageProfileNotifySink.cs
- TypeDescriptorFilterService.cs
- DependencyPropertyKey.cs
- PageThemeBuildProvider.cs
- MetadataUtilsSmi.cs
- RangeValidator.cs
- MetabaseServerConfig.cs
- XmlILIndex.cs
- ObjectDataSourceDisposingEventArgs.cs
- SqlDataAdapter.cs
- ServiceDescription.cs
- TextTreeNode.cs
- MemoryPressure.cs
- DataGridViewCellValueEventArgs.cs
- XmlSerializerFactory.cs
- BuildProvidersCompiler.cs
- PlaceHolder.cs
- GridViewHeaderRowPresenter.cs
- ProxyWebPartConnectionCollection.cs
- DataRow.cs
- TagMapCollection.cs
- TemplateEditingVerb.cs
- SocketException.cs
- VirtualPath.cs
- PropertyDescriptor.cs
- SqlBinder.cs
- InputProcessorProfiles.cs
- PeerConnector.cs
- HttpWebRequestElement.cs
- UdpReplyToBehavior.cs
- TableLayoutSettings.cs
- InProcStateClientManager.cs
- ObservableDictionary.cs
- DataGrid.cs
- CaseInsensitiveHashCodeProvider.cs
- FunctionQuery.cs
- Point3DAnimation.cs
- QilList.cs
- _LocalDataStoreMgr.cs
- UnionQueryOperator.cs
- Visitor.cs
- TokenFactoryCredential.cs
- OleDbWrapper.cs
- Dictionary.cs
- ScriptingProfileServiceSection.cs
- SystemGatewayIPAddressInformation.cs
- WeakHashtable.cs
- NetworkCredential.cs
- LinqDataSourceInsertEventArgs.cs
- ServicePointManagerElement.cs
- SiteMapHierarchicalDataSourceView.cs