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
- String.cs
- UnlockInstanceAsyncResult.cs
- CodeMemberField.cs
- Component.cs
- SqlNodeAnnotations.cs
- CodePageUtils.cs
- RemoteWebConfigurationHost.cs
- TableDetailsRow.cs
- SudsCommon.cs
- ReaderContextStackData.cs
- DomainUpDown.cs
- OptimizedTemplateContentHelper.cs
- SHA1Managed.cs
- StylusTip.cs
- TranslateTransform.cs
- FileCodeGroup.cs
- GeometryModel3D.cs
- ResourceExpressionBuilder.cs
- ErrorView.xaml.cs
- SafeNativeMethods.cs
- Bezier.cs
- ClientUtils.cs
- HtmlEncodedRawTextWriter.cs
- DbUpdateCommandTree.cs
- RootBrowserWindowProxy.cs
- MulticastDelegate.cs
- InvalidPropValue.cs
- HtmlTextArea.cs
- TableColumn.cs
- BufferedGraphicsManager.cs
- ActivityLocationReferenceEnvironment.cs
- PaintValueEventArgs.cs
- XmlValidatingReaderImpl.cs
- ListMarkerSourceInfo.cs
- MemberAccessException.cs
- HandlerBase.cs
- MarkupProperty.cs
- MatrixStack.cs
- TypeElementCollection.cs
- FormViewModeEventArgs.cs
- SiteMapNodeItemEventArgs.cs
- CqlQuery.cs
- filewebresponse.cs
- Exceptions.cs
- SerialPinChanges.cs
- CriticalFinalizerObject.cs
- HiddenFieldPageStatePersister.cs
- ObjectContext.cs
- DataException.cs
- CodeGeneratorOptions.cs
- SHA256Managed.cs
- SQLUtility.cs
- EditorZone.cs
- EditorAttribute.cs
- oledbmetadatacolumnnames.cs
- JpegBitmapEncoder.cs
- ShapingEngine.cs
- XamlInt32CollectionSerializer.cs
- WebPartDescription.cs
- ReachObjectContext.cs
- EventSinkActivityDesigner.cs
- LoginView.cs
- XmlSignificantWhitespace.cs
- ParentUndoUnit.cs
- StateRuntime.cs
- EmptyArray.cs
- OpenFileDialog.cs
- StrongName.cs
- Calendar.cs
- InputScopeNameConverter.cs
- ArrayElementGridEntry.cs
- ChangesetResponse.cs
- TerminatorSinks.cs
- ButtonChrome.cs
- externdll.cs
- ElementUtil.cs
- _SSPISessionCache.cs
- DbgUtil.cs
- DetailsView.cs
- ToolStripTextBox.cs
- SystemColorTracker.cs
- AdornerDecorator.cs
- FormattedText.cs
- Rfc2898DeriveBytes.cs
- CalloutQueueItem.cs
- MimeXmlImporter.cs
- DateTimeOffsetConverter.cs
- ApplyTemplatesAction.cs
- ProviderUtil.cs
- TextBlockAutomationPeer.cs
- Accessible.cs
- OLEDB_Util.cs
- XmlAggregates.cs
- SendKeys.cs
- IERequestCache.cs
- RefExpr.cs
- ClientTargetSection.cs
- WebPartCloseVerb.cs
- Vector3DAnimation.cs
- EncodingInfo.cs