Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeArgumentReferenceExpression.cs
- webeventbuffer.cs
- RectAnimationClockResource.cs
- EditCommandColumn.cs
- TransformValueSerializer.cs
- GlobalProxySelection.cs
- TextRangeEditTables.cs
- AssociationType.cs
- NavigationHelper.cs
- codemethodreferenceexpression.cs
- SingleKeyFrameCollection.cs
- BaseTransportHeaders.cs
- WindowsMenu.cs
- Quaternion.cs
- TrackingMemoryStream.cs
- ToolStripButton.cs
- TdsParserHelperClasses.cs
- SimpleFileLog.cs
- Rotation3DKeyFrameCollection.cs
- HttpModulesSection.cs
- XmlSchemaExporter.cs
- XmlObjectSerializerContext.cs
- DataGridViewCell.cs
- SoapProtocolImporter.cs
- ContentHostHelper.cs
- CookieParameter.cs
- Profiler.cs
- GPStream.cs
- SmiContextFactory.cs
- SoapTypeAttribute.cs
- ObjectTag.cs
- OpacityConverter.cs
- ExpressionBinding.cs
- Listbox.cs
- StorageEntityContainerMapping.cs
- WebPartEditorCancelVerb.cs
- DefaultValueConverter.cs
- BinaryWriter.cs
- ElementNotEnabledException.cs
- LogPolicy.cs
- CustomTypeDescriptor.cs
- TemplatedWizardStep.cs
- CellQuery.cs
- OneWayBindingElement.cs
- ColumnPropertiesGroup.cs
- ResourceWriter.cs
- ManagementObjectCollection.cs
- ProtocolElementCollection.cs
- ViewKeyConstraint.cs
- CompilationLock.cs
- DeviceContext2.cs
- Configuration.cs
- LineBreak.cs
- MobileUserControl.cs
- OracleConnection.cs
- MissingManifestResourceException.cs
- WorkflowInstanceExtensionManager.cs
- FrameworkEventSource.cs
- Compiler.cs
- Accessible.cs
- ObjectTag.cs
- DataChangedEventManager.cs
- TemplateXamlParser.cs
- MemberAssignmentAnalysis.cs
- SettingsBindableAttribute.cs
- DataGridViewHeaderCell.cs
- DataBindingHandlerAttribute.cs
- ObjectFullSpanRewriter.cs
- OLEDB_Util.cs
- Constants.cs
- DebugView.cs
- MetadataItem.cs
- Util.cs
- ProfessionalColors.cs
- RegexRunnerFactory.cs
- ClientTarget.cs
- XsdCachingReader.cs
- ObjectListDataBindEventArgs.cs
- WindowsEditBox.cs
- XslAst.cs
- QueryValue.cs
- XmlObjectSerializerReadContextComplexJson.cs
- BulletDecorator.cs
- CompoundFileIOPermission.cs
- ReaderWriterLock.cs
- ComplexType.cs
- XmlFormatReaderGenerator.cs
- BuildProvider.cs
- GenericsInstances.cs
- SByteConverter.cs
- UIElement3D.cs
- HandlerFactoryCache.cs
- SHA512.cs
- PathGeometry.cs
- SmiTypedGetterSetter.cs
- UnsafeNativeMethods.cs
- InputReport.cs
- SqlConnectionPoolProviderInfo.cs
- PolicyLevel.cs
- ExpressionEditorAttribute.cs