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;
///
/// Specifies whether a property or event should be displayed in
/// a property browsing window.
///
[AttributeUsage(AttributeTargets.All)]
public sealed class BrowsableAttribute : Attribute {
///
///
/// Specifies that a property or event can be modified at
/// design time. This
/// field is read-only.
///
///
public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true);
///
///
/// Specifies that a property or event cannot be modified at
/// design time. This field is read-only.
///
///
public static readonly BrowsableAttribute No = new BrowsableAttribute(false);
///
/// Specifies the default value for the ,
/// which is . This field is read-only.
///
public static readonly BrowsableAttribute Default = Yes;
private bool browsable = true;
///
/// Initializes a new instance of the class.
///
public BrowsableAttribute(bool browsable) {
this.browsable = browsable;
}
///
///
/// Gets a value indicating whether an object is browsable.
///
///
public bool Browsable {
get {
return browsable;
}
}
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
BrowsableAttribute other = obj as BrowsableAttribute;
return (other != null) && other.Browsable == browsable;
}
///
/// [To be supplied.]
///
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.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Specifies whether a property or event should be displayed in
/// a property browsing window.
///
[AttributeUsage(AttributeTargets.All)]
public sealed class BrowsableAttribute : Attribute {
///
///
/// Specifies that a property or event can be modified at
/// design time. This
/// field is read-only.
///
///
public static readonly BrowsableAttribute Yes = new BrowsableAttribute(true);
///
///
/// Specifies that a property or event cannot be modified at
/// design time. This field is read-only.
///
///
public static readonly BrowsableAttribute No = new BrowsableAttribute(false);
///
/// Specifies the default value for the ,
/// which is . This field is read-only.
///
public static readonly BrowsableAttribute Default = Yes;
private bool browsable = true;
///
/// Initializes a new instance of the class.
///
public BrowsableAttribute(bool browsable) {
this.browsable = browsable;
}
///
///
/// Gets a value indicating whether an object is browsable.
///
///
public bool Browsable {
get {
return browsable;
}
}
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
BrowsableAttribute other = obj as BrowsableAttribute;
return (other != null) && other.Browsable == browsable;
}
///
/// [To be supplied.]
///
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
- Int64AnimationUsingKeyFrames.cs
- Int32CollectionValueSerializer.cs
- BoundingRectTracker.cs
- CodeRemoveEventStatement.cs
- WebPartCatalogCloseVerb.cs
- SessionPageStateSection.cs
- PropertyMapper.cs
- SingleResultAttribute.cs
- TreeNodeCollectionEditorDialog.cs
- PersonalizablePropertyEntry.cs
- XmlName.cs
- DoubleAnimationBase.cs
- EventLogTraceListener.cs
- RenderTargetBitmap.cs
- RadioButtonAutomationPeer.cs
- Lasso.cs
- RelationshipFixer.cs
- ChannelSinkStacks.cs
- InternalResources.cs
- WebPartAuthorizationEventArgs.cs
- EditorZoneBase.cs
- StagingAreaInputItem.cs
- PrintingPermissionAttribute.cs
- WebServiceBindingAttribute.cs
- QuaternionAnimationUsingKeyFrames.cs
- UIElement.cs
- CodeTypeReferenceExpression.cs
- BitmapMetadataBlob.cs
- ExpressionBindingCollection.cs
- EditorBrowsableAttribute.cs
- TextCompositionEventArgs.cs
- DataGridComponentEditor.cs
- PropertyEntry.cs
- SharedConnectionInfo.cs
- SelfIssuedTokenFactoryCredential.cs
- MetaDataInfo.cs
- SystemWebSectionGroup.cs
- TextServicesProperty.cs
- ConnectivityStatus.cs
- UserControl.cs
- ResolveNameEventArgs.cs
- ModelTreeEnumerator.cs
- ChannelAcceptor.cs
- RequestNavigateEventArgs.cs
- UserValidatedEventArgs.cs
- HttpContext.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ProviderBase.cs
- ReadonlyMessageFilter.cs
- RsaElement.cs
- XPathPatternParser.cs
- IdleTimeoutMonitor.cs
- BamlResourceContent.cs
- JpegBitmapDecoder.cs
- StrokeCollection.cs
- RetrieveVirtualItemEventArgs.cs
- ColorBuilder.cs
- NullableLongAverageAggregationOperator.cs
- CodeDomDecompiler.cs
- CodeGeneratorOptions.cs
- DiscreteKeyFrames.cs
- ContractReference.cs
- CompilerLocalReference.cs
- InvokeDelegate.cs
- InternalConfigSettingsFactory.cs
- CodeConstructor.cs
- Geometry3D.cs
- CultureSpecificCharacterBufferRange.cs
- StagingAreaInputItem.cs
- Visual.cs
- PointLight.cs
- Int32.cs
- ManagedIStream.cs
- XmlConvert.cs
- CurrencyManager.cs
- WebPartEditorCancelVerb.cs
- Converter.cs
- FrameworkPropertyMetadata.cs
- XsdDuration.cs
- AutomationIdentifierGuids.cs
- TreeNodeCollection.cs
- Privilege.cs
- DataFormats.cs
- ArrangedElementCollection.cs
- BindingContext.cs
- FileDialog_Vista_Interop.cs
- CounterCreationData.cs
- HighlightOverlayGlyph.cs
- HtmlInputButton.cs
- EntityType.cs
- RawUIStateInputReport.cs
- RealizationContext.cs
- ComAwareEventInfo.cs
- MessageQueueCriteria.cs
- DataView.cs
- AttributedMetaModel.cs
- DynamicQueryableWrapper.cs
- SplitterPanel.cs
- HtmlInputControl.cs
- SizeConverter.cs