Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ClientApiGenerator.cs
- VectorConverter.cs
- HandledMouseEvent.cs
- EnvelopedPkcs7.cs
- FacetDescriptionElement.cs
- NegotiateStream.cs
- ReachVisualSerializer.cs
- DataGridLinkButton.cs
- FilteredXmlReader.cs
- QilGenerator.cs
- DecryptedHeader.cs
- GridViewDeletedEventArgs.cs
- TypeSystemProvider.cs
- TypedReference.cs
- SQLDouble.cs
- QueueProcessor.cs
- StringArrayEditor.cs
- updateconfighost.cs
- GeneralTransform.cs
- ToolCreatedEventArgs.cs
- RIPEMD160Managed.cs
- TypeHelpers.cs
- Italic.cs
- XmlSerializerVersionAttribute.cs
- TimeoutTimer.cs
- TreeNodeSelectionProcessor.cs
- DesignerRegionCollection.cs
- XmlSchemaAttributeGroup.cs
- PersonalizationStateInfo.cs
- CapacityStreamGeometryContext.cs
- CodeIdentifiers.cs
- MarshalByRefObject.cs
- OrderingExpression.cs
- ClientScriptManager.cs
- EventSinkHelperWriter.cs
- SystemShuttingDownException.cs
- _StreamFramer.cs
- SecurityException.cs
- EllipseGeometry.cs
- InvokeBase.cs
- CodeTypeParameter.cs
- ProcessProtocolHandler.cs
- BatchParser.cs
- WeakReferenceEnumerator.cs
- FixedSOMTableCell.cs
- CategoryNameCollection.cs
- Item.cs
- XslCompiledTransform.cs
- StringKeyFrameCollection.cs
- LayoutEvent.cs
- PolicyReader.cs
- ReversePositionQuery.cs
- PriorityQueue.cs
- TraceUtility.cs
- RecordConverter.cs
- Parameter.cs
- ColumnPropertiesGroup.cs
- PageHandlerFactory.cs
- Inline.cs
- PipelineModuleStepContainer.cs
- XmlUTF8TextWriter.cs
- CorruptingExceptionCommon.cs
- CodeCompiler.cs
- OperationPerformanceCounters.cs
- SQLDecimalStorage.cs
- DataGridViewCheckBoxCell.cs
- NativeCompoundFileAPIs.cs
- ByteRangeDownloader.cs
- _BasicClient.cs
- CallbackValidator.cs
- ForeignKeyConstraint.cs
- FaultCode.cs
- DoubleAnimationUsingPath.cs
- SettingsPropertyCollection.cs
- OdbcConnection.cs
- SapiRecoContext.cs
- DecoderBestFitFallback.cs
- DataGridPageChangedEventArgs.cs
- LineProperties.cs
- Encoding.cs
- SortQuery.cs
- LinkLabelLinkClickedEvent.cs
- TileBrush.cs
- XmlSchemaSubstitutionGroup.cs
- HtmlTableRowCollection.cs
- WebPartEditorApplyVerb.cs
- TransformPatternIdentifiers.cs
- BoolExpressionVisitors.cs
- QuotedPairReader.cs
- ButtonBase.cs
- TreeNodeCollection.cs
- SystemParameters.cs
- DataSetMappper.cs
- ActiveXSerializer.cs
- HandleValueEditor.cs
- DbBuffer.cs
- PersistChildrenAttribute.cs
- RegexNode.cs
- StorageTypeMapping.cs
- ZipIOCentralDirectoryFileHeader.cs