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 / 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
- Table.cs
- FontFamily.cs
- PeerObject.cs
- HijriCalendar.cs
- ParagraphVisual.cs
- CodeNamespaceImport.cs
- JsonServiceDocumentSerializer.cs
- MemberPathMap.cs
- ObjectItemCollection.cs
- NavigationCommands.cs
- WebBrowser.cs
- ZeroOpNode.cs
- InstanceLockedException.cs
- ObjectDataSourceDisposingEventArgs.cs
- StylusPointProperty.cs
- HttpProfileBase.cs
- RoleBoolean.cs
- Input.cs
- ScriptResourceAttribute.cs
- ObjectIDGenerator.cs
- SqlErrorCollection.cs
- MouseCaptureWithinProperty.cs
- DataBindingExpressionBuilder.cs
- SettingsAttributes.cs
- MediaElement.cs
- XmlBaseWriter.cs
- TrackBar.cs
- COM2AboutBoxPropertyDescriptor.cs
- Visitor.cs
- DataSourceControl.cs
- DescendantOverDescendantQuery.cs
- Helpers.cs
- EqualityComparer.cs
- RegexWriter.cs
- SQLUtility.cs
- ACE.cs
- util.cs
- KeyboardDevice.cs
- ISFTagAndGuidCache.cs
- GroupedContextMenuStrip.cs
- SchemaObjectWriter.cs
- RuleElement.cs
- ScriptResourceInfo.cs
- LinqDataSourceValidationException.cs
- XmlFileEditor.cs
- MetadataItemEmitter.cs
- XmlDictionaryWriter.cs
- NativeMethods.cs
- Ray3DHitTestResult.cs
- DecimalStorage.cs
- _HelperAsyncResults.cs
- DecimalAnimationBase.cs
- DescendantBaseQuery.cs
- ValidatorCollection.cs
- RadioButtonFlatAdapter.cs
- PropertyChangeTracker.cs
- ReadWriteObjectLock.cs
- NaturalLanguageHyphenator.cs
- InOutArgumentConverter.cs
- DataSetMappper.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- HandleRef.cs
- RtfControls.cs
- ComContractElementCollection.cs
- TextBox.cs
- DataBoundControlParameterTarget.cs
- MemoryPressure.cs
- Membership.cs
- DataGridViewCell.cs
- wgx_commands.cs
- DESCryptoServiceProvider.cs
- TextEditorTables.cs
- SubpageParagraph.cs
- XmlSchemaGroupRef.cs
- EtwTrace.cs
- DataSourceHelper.cs
- _SslSessionsCache.cs
- ProcessThreadCollection.cs
- PolyLineSegmentFigureLogic.cs
- TransformedBitmap.cs
- VirtualPathUtility.cs
- AnimationClock.cs
- Publisher.cs
- SymbolType.cs
- FreezableCollection.cs
- ImageClickEventArgs.cs
- MemberRestriction.cs
- MenuItemAutomationPeer.cs
- PagesSection.cs
- DocumentOrderComparer.cs
- PasswordRecoveryAutoFormat.cs
- configsystem.cs
- GeneratedContractType.cs
- RuntimeEnvironment.cs
- HttpCacheParams.cs
- PersonalizationProviderHelper.cs
- RequestNavigateEventArgs.cs
- ScriptRef.cs
- RefreshPropertiesAttribute.cs
- ITreeGenerator.cs