Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StylusTip.cs
- XmlSignatureManifest.cs
- ReadOnlyDataSource.cs
- ping.cs
- parserscommon.cs
- EventLogPermission.cs
- ActivityXRefPropertyEditor.cs
- SocketInformation.cs
- LogReserveAndAppendState.cs
- Pipe.cs
- AspNetHostingPermission.cs
- ElementHostPropertyMap.cs
- ChangeProcessor.cs
- TypeLoadException.cs
- ColorTranslator.cs
- SqlDataSourceCustomCommandPanel.cs
- Freezable.cs
- OleCmdHelper.cs
- HtmlElement.cs
- ToolStripSeparatorRenderEventArgs.cs
- Form.cs
- BamlRecordWriter.cs
- ADMembershipProvider.cs
- GridPattern.cs
- ActivationService.cs
- UiaCoreProviderApi.cs
- TypeConverters.cs
- SslStream.cs
- IdentitySection.cs
- ExclusiveTcpTransportManager.cs
- PointCollectionValueSerializer.cs
- ELinqQueryState.cs
- SqlClientWrapperSmiStreamChars.cs
- SectionVisual.cs
- HtmlProps.cs
- TypeLoadException.cs
- LoginName.cs
- WmlCalendarAdapter.cs
- BinarySerializer.cs
- VerificationException.cs
- cookiecontainer.cs
- DuplexChannelBinder.cs
- XmlRawWriterWrapper.cs
- TextPointerBase.cs
- DynamicRendererThreadManager.cs
- ContentPlaceHolder.cs
- PropertyInformation.cs
- StringWriter.cs
- X509UI.cs
- RestHandler.cs
- Function.cs
- TextModifier.cs
- ServiceMetadataPublishingElement.cs
- PrePrepareMethodAttribute.cs
- EnumMember.cs
- Triangle.cs
- DataFieldConverter.cs
- AbandonedMutexException.cs
- WindowsToolbarItemAsMenuItem.cs
- xsdvalidator.cs
- UnitySerializationHolder.cs
- HttpWebResponse.cs
- ExpressionBuilderCollection.cs
- ParameterCollection.cs
- WindowsGraphicsCacheManager.cs
- XPathNavigatorReader.cs
- LocalValueEnumerator.cs
- ProfileInfo.cs
- PanelStyle.cs
- RoleBoolean.cs
- PerformanceCounterPermissionEntryCollection.cs
- OleDragDropHandler.cs
- UIElementIsland.cs
- AnimationTimeline.cs
- SqlNodeAnnotations.cs
- DataServicePagingProviderWrapper.cs
- Transform.cs
- AnnotationDocumentPaginator.cs
- SortedList.cs
- DesignerForm.cs
- FixedPageProcessor.cs
- ExtendedProtectionPolicyTypeConverter.cs
- HostVisual.cs
- DbModificationClause.cs
- MultipartIdentifier.cs
- PasswordRecovery.cs
- DocumentSequenceHighlightLayer.cs
- MarkupProperty.cs
- CompilerErrorCollection.cs
- safelinkcollection.cs
- RequestQueryParser.cs
- BoundingRectTracker.cs
- VsPropertyGrid.cs
- HitTestResult.cs
- MatrixTransform3D.cs
- updatecommandorderer.cs
- ConfigurationConverterBase.cs
- ScriptMethodAttribute.cs
- ReadOnlyAttribute.cs
- TreeNodeCollection.cs