Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ // // 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeNodeConverter.cs
- TagPrefixInfo.cs
- _SpnDictionary.cs
- RotateTransform3D.cs
- webbrowsersite.cs
- ValueChangedEventManager.cs
- ReadOnlyKeyedCollection.cs
- ConfigsHelper.cs
- NavigationHelper.cs
- PeerName.cs
- DependencySource.cs
- IteratorDescriptor.cs
- PeerName.cs
- HttpChannelListener.cs
- LifetimeServices.cs
- MsmqInputChannel.cs
- TableLayoutPanelCellPosition.cs
- ProgressBar.cs
- TextContainer.cs
- RefreshEventArgs.cs
- SocketException.cs
- OdbcError.cs
- WebServiceHost.cs
- PlacementWorkspace.cs
- HierarchicalDataBoundControlAdapter.cs
- SiteMapHierarchicalDataSourceView.cs
- SQLUtility.cs
- DynamicDocumentPaginator.cs
- PartialArray.cs
- DataControlCommands.cs
- OleDragDropHandler.cs
- RadioButtonRenderer.cs
- ReversePositionQuery.cs
- NameValueFileSectionHandler.cs
- GlyphTypeface.cs
- InputScope.cs
- ClickablePoint.cs
- ActivityCodeGenerator.cs
- VirtualPathProvider.cs
- IfAction.cs
- ResXFileRef.cs
- HttpHandlersInstallComponent.cs
- InkPresenter.cs
- ContentValidator.cs
- HtmlWindow.cs
- PropertyAccessVisitor.cs
- StatusBar.cs
- AdapterDictionary.cs
- WebPartConnectVerb.cs
- Int32RectValueSerializer.cs
- Light.cs
- HelpKeywordAttribute.cs
- WorkflowShape.cs
- PathGradientBrush.cs
- StylusPointProperty.cs
- EntryWrittenEventArgs.cs
- HtmlElementEventArgs.cs
- TaskScheduler.cs
- DockPanel.cs
- InsufficientMemoryException.cs
- ArrayConverter.cs
- TableStyle.cs
- WindowsScroll.cs
- SystemIPInterfaceStatistics.cs
- CodeFieldReferenceExpression.cs
- OutputWindow.cs
- NavigationHelper.cs
- AccessibleObject.cs
- SqlTypeConverter.cs
- BaseComponentEditor.cs
- CngProperty.cs
- XpsPartBase.cs
- Expressions.cs
- StreamGeometry.cs
- DrawingAttributeSerializer.cs
- DecimalAverageAggregationOperator.cs
- AutomationPropertyInfo.cs
- EUCJPEncoding.cs
- CodeSnippetTypeMember.cs
- JavaScriptSerializer.cs
- GlyphRun.cs
- GZipDecoder.cs
- DeclaredTypeElementCollection.cs
- AnnotationAdorner.cs
- SectionXmlInfo.cs
- AncestorChangedEventArgs.cs
- Metadata.cs
- AssemblyName.cs
- RichTextBoxAutomationPeer.cs
- GridViewHeaderRowPresenter.cs
- EncodingStreamWrapper.cs
- HtmlInputControl.cs
- WindowsFormsSynchronizationContext.cs
- AnnotationComponentChooser.cs
- CombinedHttpChannel.cs
- Bitmap.cs
- MetafileHeader.cs
- DateTimeConverter2.cs
- WmlPhoneCallAdapter.cs
- UrlAuthFailedErrorFormatter.cs