Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SerializerDescriptor.cs
- CodeTypeParameter.cs
- AccessibilityApplicationManager.cs
- MediaPlayer.cs
- PrinterResolution.cs
- ThicknessConverter.cs
- CoTaskMemUnicodeSafeHandle.cs
- HwndAppCommandInputProvider.cs
- MailWriter.cs
- FlowNode.cs
- TextLine.cs
- __Error.cs
- DataContractSerializerElement.cs
- KnownTypesHelper.cs
- Dump.cs
- StackBuilderSink.cs
- ShaperBuffers.cs
- ServiceReference.cs
- FindCriteria11.cs
- OdbcConnectionOpen.cs
- SafeSecurityHandles.cs
- ThreadStartException.cs
- GeometryCombineModeValidation.cs
- InternalTypeHelper.cs
- ExceptionUtil.cs
- WebBrowsableAttribute.cs
- AdRotator.cs
- ToolStripItemTextRenderEventArgs.cs
- PlatformCulture.cs
- DataContext.cs
- TraceLevelStore.cs
- WindowsProgressbar.cs
- ButtonChrome.cs
- ParseHttpDate.cs
- FacetValueContainer.cs
- XmlUtil.cs
- sqlstateclientmanager.cs
- LongValidator.cs
- UxThemeWrapper.cs
- WindowsScrollBar.cs
- Wizard.cs
- ReadOnlyMetadataCollection.cs
- DesignerCategoryAttribute.cs
- OrderablePartitioner.cs
- DocumentPageView.cs
- DataComponentMethodGenerator.cs
- TypeExtensionSerializer.cs
- PropertyNames.cs
- QueuePropertyVariants.cs
- FtpRequestCacheValidator.cs
- XmlUtf8RawTextWriter.cs
- LocalizationParserHooks.cs
- DataListItem.cs
- CanonicalXml.cs
- NotSupportedException.cs
- XmlQualifiedName.cs
- CrossContextChannel.cs
- WebResourceAttribute.cs
- FontStyle.cs
- RectConverter.cs
- TraceData.cs
- XmlLanguageConverter.cs
- ColorMap.cs
- WindowHideOrCloseTracker.cs
- DateTimeParse.cs
- StyleBamlRecordReader.cs
- TrimSurroundingWhitespaceAttribute.cs
- ApplicationBuildProvider.cs
- Page.cs
- UnauthorizedAccessException.cs
- BamlRecordReader.cs
- coordinatorfactory.cs
- DataRecordObjectView.cs
- HttpResponse.cs
- SqlTypesSchemaImporter.cs
- COM2PropertyPageUITypeConverter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PageThemeBuildProvider.cs
- InlineUIContainer.cs
- QEncodedStream.cs
- EntityDataSourceColumn.cs
- CommandField.cs
- CheckPair.cs
- ObjectDataSourceSelectingEventArgs.cs
- WebScriptEnablingElement.cs
- HandleCollector.cs
- MembershipValidatePasswordEventArgs.cs
- XmlSchemaRedefine.cs
- StructuralCache.cs
- RegexReplacement.cs
- LayoutTable.cs
- QueryTreeBuilder.cs
- XmlSchemaSimpleType.cs
- Point3DAnimationBase.cs
- Unit.cs
- LinqToSqlWrapper.cs
- NegotiationTokenAuthenticator.cs
- CryptoApi.cs
- TextTreeText.cs
- DetailsViewDeleteEventArgs.cs