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
- MethodSet.cs
- BitmapEffectDrawingContextWalker.cs
- EncryptedPackageFilter.cs
- TraceHandler.cs
- DrawingBrush.cs
- DisplayNameAttribute.cs
- RegexCode.cs
- brushes.cs
- Vector3DConverter.cs
- EntityDataSourceQueryBuilder.cs
- serverconfig.cs
- TextEditorCopyPaste.cs
- XmlSchemaExporter.cs
- BooleanFunctions.cs
- DefaultPrintController.cs
- XmlQueryType.cs
- UserControl.cs
- ApplicationSecurityManager.cs
- ProfileService.cs
- DataGridViewRowHeaderCell.cs
- SettingsAttributeDictionary.cs
- StaticContext.cs
- XmlSchemaChoice.cs
- MembershipSection.cs
- Debug.cs
- ExternalCalls.cs
- COM2PictureConverter.cs
- MediaPlayer.cs
- ProfileSection.cs
- ToolBarButton.cs
- TdsEnums.cs
- PartitionedStream.cs
- ModelVisual3D.cs
- ToolStripDesigner.cs
- FuncTypeConverter.cs
- Main.cs
- InternalBase.cs
- DataServiceKeyAttribute.cs
- XmlIlGenerator.cs
- FixedDocument.cs
- ListMarkerLine.cs
- XmlProcessingInstruction.cs
- Slider.cs
- SetStoryboardSpeedRatio.cs
- SwitchDesigner.xaml.cs
- Hash.cs
- FormatControl.cs
- PrePrepareMethodAttribute.cs
- NaturalLanguageHyphenator.cs
- StatusBarPanelClickEvent.cs
- GeometryModel3D.cs
- CorrelationKeyCalculator.cs
- CodeAttributeArgumentCollection.cs
- JoinElimination.cs
- SymDocumentType.cs
- TreeNodeCollection.cs
- MemoryPressure.cs
- ToolStripDropDownClosingEventArgs.cs
- TraceSection.cs
- BlockExpression.cs
- DataSetUtil.cs
- IdnMapping.cs
- MsmqHostedTransportConfiguration.cs
- State.cs
- GeneratedView.cs
- GridToolTip.cs
- DependentList.cs
- WindowsListView.cs
- DesignerView.cs
- ReachDocumentReferenceSerializer.cs
- FunctionImportMapping.cs
- SafeNativeMethods.cs
- ExecutionProperties.cs
- SiteOfOriginContainer.cs
- WorkflowRuntime.cs
- XamlTreeBuilder.cs
- FieldNameLookup.cs
- SerializationFieldInfo.cs
- Dispatcher.cs
- EntityContainerAssociationSetEnd.cs
- Viewport3DAutomationPeer.cs
- WindowShowOrOpenTracker.cs
- SiteMapSection.cs
- IPeerNeighbor.cs
- DesignTimeVisibleAttribute.cs
- DSASignatureDeformatter.cs
- Int32.cs
- DataGridViewCell.cs
- ComboBoxItem.cs
- DbParameterCollection.cs
- RtfNavigator.cs
- ApplicationBuildProvider.cs
- GatewayDefinition.cs
- HitTestWithPointDrawingContextWalker.cs
- WorkflowInstanceRecord.cs
- PasswordTextNavigator.cs
- BinaryConverter.cs
- EventSinkHelperWriter.cs
- RuntimeWrappedException.cs
- CompositionAdorner.cs