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
- Literal.cs
- DynamicDataManager.cs
- MappingSource.cs
- newinstructionaction.cs
- FlagsAttribute.cs
- localization.cs
- Token.cs
- RadioButtonPopupAdapter.cs
- ReflectionUtil.cs
- EntityTransaction.cs
- XPathChildIterator.cs
- XmlILOptimizerVisitor.cs
- FixedSchema.cs
- TemplatedMailWebEventProvider.cs
- BamlWriter.cs
- SqlUDTStorage.cs
- Enum.cs
- EntityDataSourceSelectingEventArgs.cs
- ThicknessAnimationBase.cs
- PerspectiveCamera.cs
- COSERVERINFO.cs
- ScriptMethodAttribute.cs
- Validator.cs
- Timeline.cs
- ImageButton.cs
- PassportIdentity.cs
- String.cs
- FontDifferentiator.cs
- securitycriticaldata.cs
- UnknownBitmapDecoder.cs
- _UriSyntax.cs
- WindowsGraphics2.cs
- OutOfMemoryException.cs
- Point4D.cs
- RequiredArgumentAttribute.cs
- BoundsDrawingContextWalker.cs
- ConfigurationManager.cs
- HierarchicalDataSourceControl.cs
- CompositeCollection.cs
- TextEditorThreadLocalStore.cs
- FrugalList.cs
- ComponentDispatcher.cs
- AnnotationResourceChangedEventArgs.cs
- ProxyHwnd.cs
- PropertyTab.cs
- DataGridViewAdvancedBorderStyle.cs
- X509CertificateCollection.cs
- StateBag.cs
- WaitHandleCannotBeOpenedException.cs
- XmlObjectSerializer.cs
- RepeatBehavior.cs
- ColorAnimationBase.cs
- TdsParameterSetter.cs
- x509utils.cs
- WindowsFormsEditorServiceHelper.cs
- NavigationHelper.cs
- DocumentOutline.cs
- ConnectionManagementElementCollection.cs
- SplashScreen.cs
- ButtonChrome.cs
- EntityWrapperFactory.cs
- BasicExpandProvider.cs
- IdentityModelDictionary.cs
- ComboBox.cs
- WebControlParameterProxy.cs
- DeploymentSection.cs
- DataGridHeaderBorder.cs
- StrokeCollection.cs
- ConsumerConnectionPointCollection.cs
- VisualTreeHelper.cs
- CacheSection.cs
- RC2CryptoServiceProvider.cs
- ConfigurationSettings.cs
- CryptographicAttribute.cs
- XmlAggregates.cs
- PrintSystemException.cs
- HwndTarget.cs
- SqlExpander.cs
- PageTheme.cs
- NodeLabelEditEvent.cs
- DataSysAttribute.cs
- StylusDownEventArgs.cs
- ReflectPropertyDescriptor.cs
- NavigationPropertyEmitter.cs
- XslVisitor.cs
- PbrsForward.cs
- SemanticKeyElement.cs
- IndependentAnimationStorage.cs
- TransactionScope.cs
- DirectoryNotFoundException.cs
- SiblingIterators.cs
- TextClipboardData.cs
- WizardPanelChangingEventArgs.cs
- BamlTreeNode.cs
- ProfileBuildProvider.cs
- EntityContainerEntitySetDefiningQuery.cs
- Action.cs
- PerformanceCounterPermissionEntry.cs
- TextParaClient.cs
- PropertyChangedEventArgs.cs