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
- TemplateColumn.cs
- SettingsBase.cs
- RecordManager.cs
- TransactedReceiveScope.cs
- RightsManagementEncryptedStream.cs
- DbParameterCollection.cs
- DataBoundControlHelper.cs
- CodeGenerator.cs
- Stroke2.cs
- XsdBuilder.cs
- ConstNode.cs
- HandledEventArgs.cs
- ProfileInfo.cs
- Content.cs
- EncoderNLS.cs
- ComponentRenameEvent.cs
- Transform.cs
- EventPrivateKey.cs
- OTFRasterizer.cs
- OracleCommandBuilder.cs
- ProfileManager.cs
- EditorZoneAutoFormat.cs
- WindowsListViewSubItem.cs
- GridSplitter.cs
- MetadataHelper.cs
- MediaScriptCommandRoutedEventArgs.cs
- FileSecurity.cs
- FolderNameEditor.cs
- TreeViewImageGenerator.cs
- AggregateNode.cs
- FacetValueContainer.cs
- StrokeCollection.cs
- ColumnBinding.cs
- UserControl.cs
- _FtpControlStream.cs
- ParsedAttributeCollection.cs
- DivideByZeroException.cs
- ExtenderProvidedPropertyAttribute.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- Help.cs
- AutomationEventArgs.cs
- XmlEncoding.cs
- Compiler.cs
- ToolBarDesigner.cs
- DataSourceControlBuilder.cs
- EventRouteFactory.cs
- DbQueryCommandTree.cs
- FormViewPagerRow.cs
- MultipartContentParser.cs
- CatchBlock.cs
- PointCollection.cs
- EventLogReader.cs
- ToolBarTray.cs
- FileLevelControlBuilderAttribute.cs
- PointAnimationClockResource.cs
- SendActivityValidator.cs
- FormatStringEditor.cs
- Authorization.cs
- ObjectStorage.cs
- ToolStripDropDownMenu.cs
- IntAverageAggregationOperator.cs
- SafeRegistryKey.cs
- FileAuthorizationModule.cs
- ResourceContainer.cs
- DataServiceQueryProvider.cs
- GridViewColumnCollectionChangedEventArgs.cs
- MessageBox.cs
- NullableIntAverageAggregationOperator.cs
- AcceleratedTokenProviderState.cs
- DataGridViewTextBoxCell.cs
- ClientRoleProvider.cs
- GridView.cs
- Int32RectConverter.cs
- SqlPersonalizationProvider.cs
- SpeechUI.cs
- ArgumentException.cs
- AttributeEmitter.cs
- PropertyRef.cs
- StaticExtension.cs
- ZipIOLocalFileDataDescriptor.cs
- ServiceMemoryGates.cs
- ImageAttributes.cs
- MdiWindowListItemConverter.cs
- tibetanshape.cs
- TextRangeAdaptor.cs
- SharedHttpsTransportManager.cs
- SnapshotChangeTrackingStrategy.cs
- PreviewControlDesigner.cs
- WebBrowserNavigatedEventHandler.cs
- UriSection.cs
- WSFederationHttpSecurity.cs
- PropertyEmitterBase.cs
- TextEditorMouse.cs
- NullableConverter.cs
- AssertUtility.cs
- EventLogPermission.cs
- TableRowGroupCollection.cs
- LinkLabel.cs
- SafeReversePInvokeHandle.cs
- HttpApplicationFactory.cs