Code:
/ DotNET / DotNET / 8.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
- HttpDictionary.cs
- BitSet.cs
- ProcessThread.cs
- SoapSchemaImporter.cs
- StaticExtension.cs
- SmtpClient.cs
- TemplateManager.cs
- HttpHandlersSection.cs
- __TransparentProxy.cs
- HttpRequestCacheValidator.cs
- DetailsViewRow.cs
- JoinElimination.cs
- ReferencedCollectionType.cs
- JsonFormatWriterGenerator.cs
- Drawing.cs
- ListBoxItemWrapperAutomationPeer.cs
- FixedTextView.cs
- SqlNodeAnnotations.cs
- LowerCaseStringConverter.cs
- AttachedAnnotationChangedEventArgs.cs
- ConnectionAcceptor.cs
- TypeDependencyAttribute.cs
- MachineSettingsSection.cs
- ArrayElementGridEntry.cs
- PathSegment.cs
- AddressAccessDeniedException.cs
- OleDbEnumerator.cs
- ApplicationId.cs
- ConfigurationErrorsException.cs
- TemplateBindingExpression.cs
- InvariantComparer.cs
- GridToolTip.cs
- FontConverter.cs
- MasterPageCodeDomTreeGenerator.cs
- RectangleConverter.cs
- SafeNativeMethods.cs
- SmtpLoginAuthenticationModule.cs
- ColorDialog.cs
- SqlDataSourceFilteringEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TreeViewItem.cs
- StylusButtonEventArgs.cs
- QueryRewriter.cs
- WrappedIUnknown.cs
- SelectionEditor.cs
- Geometry.cs
- EmptyEnumerator.cs
- GlyphRunDrawing.cs
- DataGridViewCellMouseEventArgs.cs
- EntityKeyElement.cs
- HostedAspNetEnvironment.cs
- QueryOutputWriterV1.cs
- SecurityTokenContainer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- VisemeEventArgs.cs
- EmptyEnumerator.cs
- FlowDocumentView.cs
- Image.cs
- PreviewPageInfo.cs
- WeakRefEnumerator.cs
- GiveFeedbackEventArgs.cs
- hresults.cs
- RegistryConfigurationProvider.cs
- XamlSerializerUtil.cs
- InfoCardKeyedHashAlgorithm.cs
- Parallel.cs
- LinqDataSourceInsertEventArgs.cs
- IMembershipProvider.cs
- StringCollectionMarkupSerializer.cs
- ProfilePropertySettings.cs
- XamlStream.cs
- ColorBlend.cs
- ScriptResourceInfo.cs
- SchemaInfo.cs
- PersistChildrenAttribute.cs
- AppDomainUnloadedException.cs
- TextBoxRenderer.cs
- ProtocolInformationWriter.cs
- InvokePatternIdentifiers.cs
- MenuAutomationPeer.cs
- ServiceContractListItemList.cs
- OdbcParameter.cs
- Vector3DCollectionConverter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SQLResource.cs
- ToolStripLocationCancelEventArgs.cs
- SqlProviderManifest.cs
- ListSourceHelper.cs
- RenderingBiasValidation.cs
- HighlightComponent.cs
- SafeCryptContextHandle.cs
- NotifyIcon.cs
- TextParagraphCache.cs
- ValidationSummary.cs
- HyperlinkAutomationPeer.cs
- SettingsPropertyCollection.cs
- QilInvokeEarlyBound.cs
- ToolStripHighContrastRenderer.cs
- Rfc4050KeyFormatter.cs
- ProxyHwnd.cs