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
- Validator.cs
- ChineseLunisolarCalendar.cs
- RegistrySecurity.cs
- SafeNativeMethods.cs
- CollectionViewGroup.cs
- ComEventsSink.cs
- Rijndael.cs
- FixedSOMLineCollection.cs
- GradientStop.cs
- BindStream.cs
- XmlIterators.cs
- MonthCalendar.cs
- CmsUtils.cs
- AddInServer.cs
- ToolBarButtonClickEvent.cs
- CommandValueSerializer.cs
- ConstraintManager.cs
- X509Certificate2.cs
- ControlEvent.cs
- ReadOnlyDataSource.cs
- LinqExpressionNormalizer.cs
- SiteMembershipCondition.cs
- FloaterBaseParaClient.cs
- Int16Animation.cs
- SafeUserTokenHandle.cs
- ScriptControl.cs
- ImportCatalogPart.cs
- TextTreeInsertUndoUnit.cs
- ObfuscationAttribute.cs
- WCFServiceClientProxyGenerator.cs
- AsnEncodedData.cs
- DeclaredTypeValidator.cs
- ThreadAbortException.cs
- NaturalLanguageHyphenator.cs
- WebPageTraceListener.cs
- VScrollProperties.cs
- HandlerBase.cs
- XmlEntity.cs
- MarkupWriter.cs
- DataGridRowHeaderAutomationPeer.cs
- Renderer.cs
- FileVersionInfo.cs
- DatePickerAutomationPeer.cs
- TrustLevelCollection.cs
- VerticalAlignConverter.cs
- ColumnBinding.cs
- ByteAnimation.cs
- GeneratedView.cs
- XmlValidatingReader.cs
- TemplatePartAttribute.cs
- WebColorConverter.cs
- SqlDataSourceCache.cs
- GridItem.cs
- OrthographicCamera.cs
- ResXDataNode.cs
- Constants.cs
- ConfigXmlComment.cs
- FixedTextContainer.cs
- StylusPointPropertyId.cs
- UInt64Storage.cs
- IEnumerable.cs
- OdbcConnectionOpen.cs
- ListBindingHelper.cs
- RbTree.cs
- ClassValidator.cs
- ServerIdentity.cs
- ReadonlyMessageFilter.cs
- Buffer.cs
- ReadOnlyDictionary.cs
- DescendentsWalker.cs
- DataSourceControlBuilder.cs
- SmtpNetworkElement.cs
- QueryAccessibilityHelpEvent.cs
- TreeNodeCollection.cs
- ResourceReader.cs
- ECDsa.cs
- CodeIterationStatement.cs
- Zone.cs
- FamilyMap.cs
- ScrollBarAutomationPeer.cs
- ToolStripContentPanelDesigner.cs
- QilNode.cs
- CodeTypeDelegate.cs
- TileModeValidation.cs
- KeyInfo.cs
- PartialTrustVisibleAssembliesSection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- FactoryMaker.cs
- HttpSocketManager.cs
- SqlBulkCopy.cs
- SystemSounds.cs
- GroupBox.cs
- SimpleType.cs
- SqlNotificationRequest.cs
- FacetChecker.cs
- hwndwrapper.cs
- DayRenderEvent.cs
- TemplateDefinition.cs
- securitycriticaldataformultiplegetandset.cs
- DataGridViewRowPrePaintEventArgs.cs