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
- FrameworkElement.cs
- ValueExpressions.cs
- StrokeNode.cs
- EntitySqlQueryCacheEntry.cs
- CriticalHandle.cs
- InputBuffer.cs
- SortKey.cs
- ListViewGroupConverter.cs
- XmlDocument.cs
- SiteMapDataSource.cs
- ADMembershipProvider.cs
- TogglePatternIdentifiers.cs
- PackageRelationship.cs
- XamlLoadErrorInfo.cs
- Vector3DIndependentAnimationStorage.cs
- SupportsEventValidationAttribute.cs
- TypeUtil.cs
- EntityDataSourceEntityTypeFilterItem.cs
- GridViewCommandEventArgs.cs
- Array.cs
- CellTreeSimplifier.cs
- DateTimeUtil.cs
- PublishLicense.cs
- MetadataStore.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TextDecorationUnitValidation.cs
- SoapAttributeAttribute.cs
- DbQueryCommandTree.cs
- Adorner.cs
- MemberAccessException.cs
- BufferCache.cs
- ArrayTypeMismatchException.cs
- MasterPageParser.cs
- ISessionStateStore.cs
- WebColorConverter.cs
- ActivationService.cs
- CallSite.cs
- XmlSerializationGeneratedCode.cs
- HtmlGenericControl.cs
- DefaultDialogButtons.cs
- DataServiceQueryOfT.cs
- TraceSection.cs
- SelectionUIHandler.cs
- FloatSumAggregationOperator.cs
- validationstate.cs
- HttpCachePolicy.cs
- RolePrincipal.cs
- Registry.cs
- DescendentsWalker.cs
- LicenseException.cs
- SingleAnimationBase.cs
- RemoteDebugger.cs
- ObjectStateEntryDbDataRecord.cs
- TransactedReceiveData.cs
- SecurityPolicySection.cs
- BaseCodePageEncoding.cs
- TemplatePropertyEntry.cs
- TextBoxRenderer.cs
- AxParameterData.cs
- XmlEncodedRawTextWriter.cs
- MachineKeySection.cs
- CodeChecksumPragma.cs
- MemberDescriptor.cs
- ModuleElement.cs
- XPathArrayIterator.cs
- SystemIPInterfaceProperties.cs
- XMLDiffLoader.cs
- FontStretches.cs
- HuffModule.cs
- ResourceDescriptionAttribute.cs
- ConfigurationElementCollection.cs
- MethodBody.cs
- DefaultValueAttribute.cs
- EntityDataSourceMemberPath.cs
- InputLanguageProfileNotifySink.cs
- SqlRewriteScalarSubqueries.cs
- ServiceContractViewControl.Designer.cs
- ComAwareEventInfo.cs
- MissingMemberException.cs
- ReflectTypeDescriptionProvider.cs
- MulticastIPAddressInformationCollection.cs
- safelink.cs
- ContentElement.cs
- FieldBuilder.cs
- TransactionScope.cs
- CorrelationTokenInvalidatedHandler.cs
- Exceptions.cs
- RandomNumberGenerator.cs
- DbDataReader.cs
- DurableEnlistmentState.cs
- SqlDeflator.cs
- DesignerVerbCollection.cs
- ContourSegment.cs
- WindowsUpDown.cs
- ByteBufferPool.cs
- TrustManagerMoreInformation.cs
- SqlTypesSchemaImporter.cs
- ToolStripSystemRenderer.cs
- DataList.cs
- CmsInterop.cs