Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / WebBrowsableAttribute.cs / 1 / WebBrowsableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebBrowsableAttribute : Attribute { ////// public static readonly WebBrowsableAttribute Yes = new WebBrowsableAttribute(true); ////// public static readonly WebBrowsableAttribute No = new WebBrowsableAttribute(false); ////// public static readonly WebBrowsableAttribute Default = No; private bool _browsable; ////// public WebBrowsableAttribute() : this(true) { } ////// public WebBrowsableAttribute(bool browsable) { _browsable = browsable; } ////// public bool Browsable { get { return _browsable; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } WebBrowsableAttribute other = obj as WebBrowsableAttribute; return (other != null) && (other.Browsable == Browsable); } /// public override int GetHashCode() { return _browsable.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.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebBrowsableAttribute : Attribute { ////// public static readonly WebBrowsableAttribute Yes = new WebBrowsableAttribute(true); ////// public static readonly WebBrowsableAttribute No = new WebBrowsableAttribute(false); ////// public static readonly WebBrowsableAttribute Default = No; private bool _browsable; ////// public WebBrowsableAttribute() : this(true) { } ////// public WebBrowsableAttribute(bool browsable) { _browsable = browsable; } ////// public bool Browsable { get { return _browsable; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } WebBrowsableAttribute other = obj as WebBrowsableAttribute; return (other != null) && (other.Browsable == Browsable); } /// public override int GetHashCode() { return _browsable.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
- QilValidationVisitor.cs
- TextTreeDeleteContentUndoUnit.cs
- DrawingContext.cs
- FileRegion.cs
- CuspData.cs
- HttpClientCertificate.cs
- FixedHighlight.cs
- ButtonBase.cs
- ArraySubsetEnumerator.cs
- ObjectList.cs
- OleDbReferenceCollection.cs
- ApplicationActivator.cs
- HtmlInputControl.cs
- ClockController.cs
- BaseComponentEditor.cs
- TimelineCollection.cs
- ScrollBar.cs
- SecurityManager.cs
- Resources.Designer.cs
- BuildResultCache.cs
- DataGridViewCellValueEventArgs.cs
- TTSEngineTypes.cs
- StateManagedCollection.cs
- ThreadStartException.cs
- AsyncSerializedWorker.cs
- EntryPointNotFoundException.cs
- AvTraceFormat.cs
- RequestCacheManager.cs
- CodeMethodMap.cs
- SystemSounds.cs
- ClientType.cs
- AtomServiceDocumentSerializer.cs
- AuthorizationRule.cs
- Substitution.cs
- addressfiltermode.cs
- SafeSecurityHandles.cs
- JsonWriter.cs
- StylusEditingBehavior.cs
- RenderDataDrawingContext.cs
- InstalledVoice.cs
- DocumentApplication.cs
- StringFreezingAttribute.cs
- DetailsViewDeleteEventArgs.cs
- Clipboard.cs
- TraceFilter.cs
- SymLanguageType.cs
- QueryException.cs
- DoubleLinkList.cs
- peersecurityelement.cs
- LinkUtilities.cs
- DriveNotFoundException.cs
- Literal.cs
- CompositionTarget.cs
- SubpageParaClient.cs
- TabControl.cs
- SplineKeyFrames.cs
- Accessible.cs
- CalendarDay.cs
- EdmSchemaError.cs
- LoadRetryAsyncResult.cs
- PriorityQueue.cs
- HybridDictionary.cs
- DataPagerFieldCollection.cs
- XPathSelfQuery.cs
- SqlInternalConnectionTds.cs
- GridToolTip.cs
- EarlyBoundInfo.cs
- GuidTagList.cs
- SingleObjectCollection.cs
- CharConverter.cs
- ClientViaElement.cs
- Tile.cs
- ToolTipService.cs
- ZipIOExtraField.cs
- PrintEvent.cs
- SaveFileDialog.cs
- EntitySqlQueryState.cs
- CodeGen.cs
- StyleTypedPropertyAttribute.cs
- ControlCachePolicy.cs
- VisualTarget.cs
- GetPageNumberCompletedEventArgs.cs
- DesignerAttribute.cs
- SqlNodeTypeOperators.cs
- Model3DCollection.cs
- PathSegmentCollection.cs
- StyleHelper.cs
- CacheChildrenQuery.cs
- Axis.cs
- SingleAnimation.cs
- OutKeywords.cs
- DataGridViewColumnCollection.cs
- DataColumnChangeEvent.cs
- DBProviderConfigurationHandler.cs
- FormConverter.cs
- ExpressionsCollectionEditor.cs
- SystemResourceKey.cs
- Mutex.cs
- UnicodeEncoding.cs
- EntityContainerRelationshipSet.cs