Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / BrowsableAttribute.cs / 1 / BrowsableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class BrowsableAttribute : Attribute { ///Specifies whether a property or event should be displayed in /// a property browsing window. ////// public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true); ////// Specifies that a property or event can be modified at /// design time. This ////// field is read-only. /// /// public static readonly BrowsableAttribute No = new BrowsableAttribute(false); ////// Specifies that a property or event cannot be modified at /// design time. This ///field is read-only. /// /// public static readonly BrowsableAttribute Default = Yes; private bool browsable = true; ///Specifies the default value for the ///, /// which is . This field is read-only. /// public BrowsableAttribute(bool browsable) { this.browsable = browsable; } ///Initializes a new instance of the ///class. /// public bool Browsable { get { return browsable; } } ////// Gets a value indicating whether an object is browsable. /// ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } BrowsableAttribute other = obj as BrowsableAttribute; return (other != null) && other.Browsable == browsable; } ////// public override int GetHashCode() { return browsable.GetHashCode(); } ///[To be supplied.] ////// /// 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.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class BrowsableAttribute : Attribute { ///Specifies whether a property or event should be displayed in /// a property browsing window. ////// public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true); ////// Specifies that a property or event can be modified at /// design time. This ////// field is read-only. /// /// public static readonly BrowsableAttribute No = new BrowsableAttribute(false); ////// Specifies that a property or event cannot be modified at /// design time. This ///field is read-only. /// /// public static readonly BrowsableAttribute Default = Yes; private bool browsable = true; ///Specifies the default value for the ///, /// which is . This field is read-only. /// public BrowsableAttribute(bool browsable) { this.browsable = browsable; } ///Initializes a new instance of the ///class. /// public bool Browsable { get { return browsable; } } ////// Gets a value indicating whether an object is browsable. /// ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } BrowsableAttribute other = obj as BrowsableAttribute; return (other != null) && other.Browsable == browsable; } ////// public override int GetHashCode() { return browsable.GetHashCode(); } ///[To be supplied.] ////// /// 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
- PagerStyle.cs
- DesignTimeValidationFeature.cs
- TreeBuilder.cs
- RelationshipType.cs
- PositiveTimeSpanValidatorAttribute.cs
- Encoding.cs
- BaseCodeDomTreeGenerator.cs
- ISAPIApplicationHost.cs
- TextPattern.cs
- Number.cs
- MultiPartWriter.cs
- LinkUtilities.cs
- TemplateControlCodeDomTreeGenerator.cs
- VisemeEventArgs.cs
- DataRowExtensions.cs
- XmlBoundElement.cs
- StringWriter.cs
- RayHitTestParameters.cs
- FormClosedEvent.cs
- validationstate.cs
- DocumentViewerBaseAutomationPeer.cs
- DBDataPermissionAttribute.cs
- DbgCompiler.cs
- GridViewRowEventArgs.cs
- Control.cs
- BooleanStorage.cs
- SegmentTree.cs
- DesignerDataView.cs
- RegexGroup.cs
- OSFeature.cs
- ToolStripGripRenderEventArgs.cs
- SimpleHandlerBuildProvider.cs
- TraceSwitch.cs
- DataControlButton.cs
- VisualStyleRenderer.cs
- ScriptControl.cs
- TextTreePropertyUndoUnit.cs
- CustomAttribute.cs
- Random.cs
- X509UI.cs
- TextBoxAutomationPeer.cs
- FastEncoderStatics.cs
- WindowsFormsSynchronizationContext.cs
- ComponentGuaranteesAttribute.cs
- XmlUtil.cs
- ReceiveErrorHandling.cs
- XmlAnyElementAttribute.cs
- FileUpload.cs
- Color.cs
- RepeatBehaviorConverter.cs
- FuncCompletionCallbackWrapper.cs
- TimerElapsedEvenArgs.cs
- PropertySourceInfo.cs
- HistoryEventArgs.cs
- COM2ICategorizePropertiesHandler.cs
- OdbcConnectionOpen.cs
- _ShellExpression.cs
- MemoryStream.cs
- XmlMessageFormatter.cs
- WebPartRestoreVerb.cs
- SqlCommandSet.cs
- CleanUpVirtualizedItemEventArgs.cs
- ConnectionPointConverter.cs
- FindSimilarActivitiesVerb.cs
- ConnectionManagementSection.cs
- _HeaderInfoTable.cs
- ImageBrush.cs
- HtmlInputImage.cs
- BindingExpressionBase.cs
- Button.cs
- Selection.cs
- CodeSnippetExpression.cs
- CheckBoxField.cs
- XPathDescendantIterator.cs
- Peer.cs
- HostProtectionPermission.cs
- TypeConverterAttribute.cs
- PriorityBindingExpression.cs
- SmtpNtlmAuthenticationModule.cs
- LicFileLicenseProvider.cs
- EventMappingSettingsCollection.cs
- ImageBrush.cs
- XamlContextStack.cs
- DataRelationPropertyDescriptor.cs
- GeneratedContractType.cs
- SignatureTargetIdManager.cs
- XamlStream.cs
- Vars.cs
- SecurityContext.cs
- ToolStripRendererSwitcher.cs
- CaseStatement.cs
- XsltQilFactory.cs
- ExtensibleClassFactory.cs
- SatelliteContractVersionAttribute.cs
- DataGrid.cs
- CollectionViewGroup.cs
- OleDbConnectionInternal.cs
- DynamicResourceExtensionConverter.cs
- CompositeFontInfo.cs
- DesignerRegionCollection.cs