Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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)); } } } // 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
- basemetadatamappingvisitor.cs
- WeakEventTable.cs
- TableLayoutStyleCollection.cs
- SqlBuilder.cs
- ToolStripGrip.cs
- LazyTextWriterCreator.cs
- LiteralControl.cs
- Size3D.cs
- SystemIPv6InterfaceProperties.cs
- ToolStripTextBox.cs
- _SSPISessionCache.cs
- RayHitTestParameters.cs
- PageRouteHandler.cs
- ClearCollection.cs
- PathSegment.cs
- MsdtcWrapper.cs
- XmlSchemaNotation.cs
- SerializationHelper.cs
- ProgressBar.cs
- PositiveTimeSpanValidator.cs
- FileLoadException.cs
- RTLAwareMessageBox.cs
- TabControlAutomationPeer.cs
- RangeValidator.cs
- TextSelectionProcessor.cs
- DataRelationCollection.cs
- updatecommandorderer.cs
- DataGridPreparingCellForEditEventArgs.cs
- CmsInterop.cs
- DataGridAutoFormatDialog.cs
- LinqDataSourceInsertEventArgs.cs
- XhtmlBasicFormAdapter.cs
- Variant.cs
- CodeTypeDeclaration.cs
- DropSourceBehavior.cs
- HtmlInputImage.cs
- LinkLabelLinkClickedEvent.cs
- Simplifier.cs
- ListItemCollection.cs
- XmlExpressionDumper.cs
- Win32Native.cs
- KeyFrames.cs
- QilScopedVisitor.cs
- GeneralTransform3D.cs
- FrameworkElementAutomationPeer.cs
- RectangleGeometry.cs
- UIAgentMonitor.cs
- TextDecorationCollection.cs
- InfoCardSchemas.cs
- OutputCacheModule.cs
- TypeUtil.cs
- PenThreadWorker.cs
- FixedPageStructure.cs
- ColorTranslator.cs
- AffineTransform3D.cs
- FrameAutomationPeer.cs
- _SSPIWrapper.cs
- MatrixAnimationUsingPath.cs
- ApplyImportsAction.cs
- ServiceModelSecurityTokenRequirement.cs
- tabpagecollectioneditor.cs
- OrderedParallelQuery.cs
- GlyphTypeface.cs
- RSACryptoServiceProvider.cs
- LockedHandleGlyph.cs
- XmlSiteMapProvider.cs
- HandlerMappingMemo.cs
- EntityKey.cs
- WindowsGraphics.cs
- DashStyle.cs
- ExpressionPrinter.cs
- TypeUtil.cs
- NetPipeSection.cs
- ExpressionValueEditor.cs
- Color.cs
- InfoCardArgumentException.cs
- SmtpNegotiateAuthenticationModule.cs
- UIEndRequest.cs
- ExpressionBindingCollection.cs
- ScrollBarAutomationPeer.cs
- KnownColorTable.cs
- TextTreeUndo.cs
- InkCanvasInnerCanvas.cs
- HostingEnvironmentWrapper.cs
- DataBindingHandlerAttribute.cs
- AttributeData.cs
- COM2ComponentEditor.cs
- LabelLiteral.cs
- FtpRequestCacheValidator.cs
- ActivityCodeDomSerializationManager.cs
- QueryPrefixOp.cs
- TripleDESCryptoServiceProvider.cs
- MediaPlayer.cs
- CategoryGridEntry.cs
- RC2CryptoServiceProvider.cs
- Rect3D.cs
- ImagingCache.cs
- PageThemeBuildProvider.cs
- SecurityRuntime.cs
- EndOfStreamException.cs