Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebBrowsableAttribute.cs / 1305376 / WebBrowsableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; ////// [AttributeUsage(AttributeTargets.Property)] 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; ////// [AttributeUsage(AttributeTargets.Property)] 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
- OrderByQueryOptionExpression.cs
- RTLAwareMessageBox.cs
- SqlAggregateChecker.cs
- AsyncOperation.cs
- SqlClientMetaDataCollectionNames.cs
- StateWorkerRequest.cs
- TdsParserSafeHandles.cs
- ISFTagAndGuidCache.cs
- ProviderConnectionPoint.cs
- ProgressBarAutomationPeer.cs
- TimeoutTimer.cs
- PropertyEmitterBase.cs
- DynamicILGenerator.cs
- ResolvedKeyFrameEntry.cs
- PeerDuplexChannelListener.cs
- ExecutionScope.cs
- SoapObjectReader.cs
- ExpressionPrefixAttribute.cs
- XmlSerializerSection.cs
- RewritingPass.cs
- ReaderContextStackData.cs
- CookielessHelper.cs
- KerberosSecurityTokenAuthenticator.cs
- DataControlCommands.cs
- PeerUnsafeNativeCryptMethods.cs
- XmlResolver.cs
- HijriCalendar.cs
- Rijndael.cs
- RightNameExpirationInfoPair.cs
- TextWriter.cs
- AbstractDataSvcMapFileLoader.cs
- Registry.cs
- Gdiplus.cs
- CommandDevice.cs
- TreeViewDesigner.cs
- DataServiceExpressionVisitor.cs
- SQLBytes.cs
- SpecialTypeDataContract.cs
- BehaviorEditorPart.cs
- PolicyManager.cs
- Timer.cs
- PersonalizationState.cs
- NotifyInputEventArgs.cs
- MonthChangedEventArgs.cs
- ProcessRequestArgs.cs
- ReadOnlyPropertyMetadata.cs
- NameValuePair.cs
- KoreanCalendar.cs
- HtmlLinkAdapter.cs
- CharAnimationUsingKeyFrames.cs
- InputScopeAttribute.cs
- CompilationRelaxations.cs
- WpfPayload.cs
- XmlTypeAttribute.cs
- DataGridColumn.cs
- HitTestWithPointDrawingContextWalker.cs
- EditorZoneAutoFormat.cs
- SortDescription.cs
- MethodRental.cs
- InternalConfigConfigurationFactory.cs
- RefType.cs
- IndexerNameAttribute.cs
- ConvertEvent.cs
- AssemblyContextControlItem.cs
- Int32AnimationUsingKeyFrames.cs
- ProtocolState.cs
- BufferModesCollection.cs
- CompositionAdorner.cs
- CredentialCache.cs
- Baml2006ReaderSettings.cs
- TextTreeUndo.cs
- InputDevice.cs
- RoleGroup.cs
- SafeProcessHandle.cs
- DataSourceGroupCollection.cs
- AudioFormatConverter.cs
- WebPartTracker.cs
- FixedDocument.cs
- DataReaderContainer.cs
- ProjectedWrapper.cs
- Point3D.cs
- Soap12ProtocolImporter.cs
- MetadataItemCollectionFactory.cs
- ParallelTimeline.cs
- InvalidProgramException.cs
- ComponentResourceManager.cs
- SrgsToken.cs
- CorrelationQueryBehavior.cs
- ObjectAnimationBase.cs
- Parser.cs
- IOThreadTimer.cs
- selecteditemcollection.cs
- TreeViewImageKeyConverter.cs
- ContentPresenter.cs
- COM2ComponentEditor.cs
- VersionedStream.cs
- SemanticResultKey.cs
- AutomationProperty.cs
- FrameworkRichTextComposition.cs
- GraphicsPathIterator.cs