Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebDescriptionAttribute.cs / 1 / WebDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebDescriptionAttribute : Attribute { public static readonly WebDescriptionAttribute Default = new WebDescriptionAttribute(); private string _description; public WebDescriptionAttribute() : this(String.Empty) { } public WebDescriptionAttribute(string description) { _description = description; } public virtual string Description { get { return DescriptionValue; } } protected string DescriptionValue { get { return _description; } set { _description = value; } } public override bool Equals(object obj) { if (obj == this) { return true; } WebDescriptionAttribute other = obj as WebDescriptionAttribute; return (other != null) && other.Description == Description; } public override int GetHashCode() { return Description.GetHashCode(); } ///public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActivityExecutor.cs
- GridViewSortEventArgs.cs
- IgnoreSection.cs
- DesignerValidationSummaryAdapter.cs
- BamlTreeUpdater.cs
- InternalPermissions.cs
- ModelPerspective.cs
- AnnotationStore.cs
- Pair.cs
- WebControl.cs
- LinkedList.cs
- WasEndpointConfigContainer.cs
- AmbientProperties.cs
- DbConnectionInternal.cs
- DiscoveryUtility.cs
- PathSegment.cs
- OdbcHandle.cs
- MaskedTextBox.cs
- FontNamesConverter.cs
- XmlImplementation.cs
- BeginEvent.cs
- FtpCachePolicyElement.cs
- Confirm.cs
- PersonalizationProvider.cs
- WebPartManagerInternals.cs
- ZipIORawDataFileBlock.cs
- LineGeometry.cs
- UnaryNode.cs
- HttpConfigurationSystem.cs
- SoapTypeAttribute.cs
- FlowLayout.cs
- XmlSchemaException.cs
- GotoExpression.cs
- RequestCacheManager.cs
- OleDbRowUpdatingEvent.cs
- basemetadatamappingvisitor.cs
- FixUp.cs
- XmlReaderSettings.cs
- DBSchemaRow.cs
- OleStrCAMarshaler.cs
- DataSourceSelectArguments.cs
- XmlSchemaValidator.cs
- DataListItemEventArgs.cs
- DateTimePicker.cs
- HitTestParameters3D.cs
- ProfileProvider.cs
- DnsEndpointIdentity.cs
- MobileSysDescriptionAttribute.cs
- Monitor.cs
- ProcessRequestArgs.cs
- ResourceContainer.cs
- SiteOfOriginPart.cs
- DropDownButton.cs
- DynamicDiscoSearcher.cs
- DataAdapter.cs
- XmlSchemaIdentityConstraint.cs
- Geometry3D.cs
- DbConnectionOptions.cs
- DrawingContextDrawingContextWalker.cs
- RemoteWebConfigurationHostServer.cs
- ReceiveActivityDesignerTheme.cs
- TextAction.cs
- WindowsFormsLinkLabel.cs
- ErasingStroke.cs
- ExtractedStateEntry.cs
- PeerApplicationLaunchInfo.cs
- TimeSpanConverter.cs
- LinearGradientBrush.cs
- StoreAnnotationsMap.cs
- ProviderCollection.cs
- DelegatingTypeDescriptionProvider.cs
- Pen.cs
- Config.cs
- WebPartDeleteVerb.cs
- hresults.cs
- RadioButton.cs
- DbConnectionHelper.cs
- IsolatedStorageSecurityState.cs
- StructuredTypeInfo.cs
- ExportOptions.cs
- XpsThumbnail.cs
- HttpStreams.cs
- RtfControls.cs
- Base64Encoding.cs
- SchemaCollectionPreprocessor.cs
- SortedDictionary.cs
- AspCompat.cs
- OracleMonthSpan.cs
- ActivityScheduledQuery.cs
- PhysicalOps.cs
- Command.cs
- PrintPreviewGraphics.cs
- ValueConversionAttribute.cs
- ScrollBarRenderer.cs
- FrameAutomationPeer.cs
- NGCSerializationManagerAsync.cs
- XamlToRtfWriter.cs
- WindowsToolbarAsMenu.cs
- SignedInfo.cs
- ClientSponsor.cs