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 / EditorBrowsableAttribute.cs / 1 / EditorBrowsableAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel
{
using System.Security.Permissions;
///
/// [To be supplied.]
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Delegate | AttributeTargets.Interface)]
public sealed class EditorBrowsableAttribute :Attribute
{
private EditorBrowsableState browsableState;
///
/// [To be supplied.]
///
public EditorBrowsableAttribute (EditorBrowsableState state) {
browsableState = state;
}
///
/// [To be supplied.]
///
public EditorBrowsableAttribute () :this (EditorBrowsableState.Always) {}
///
/// [To be supplied.]
///
public EditorBrowsableState State {
get { return browsableState;}
}
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
EditorBrowsableAttribute other = obj as EditorBrowsableAttribute;
return (other != null) && other.browsableState == browsableState;
}
public override int GetHashCode() {
return base.GetHashCode();
}
}
///
/// [To be supplied.]
///
public enum EditorBrowsableState
{
///
/// [To be supplied.]
///
Always,
///
/// [To be supplied.]
///
Never,
///
/// [To be supplied.]
///
Advanced
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel
{
using System.Security.Permissions;
///
/// [To be supplied.]
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Delegate | AttributeTargets.Interface)]
public sealed class EditorBrowsableAttribute :Attribute
{
private EditorBrowsableState browsableState;
///
/// [To be supplied.]
///
public EditorBrowsableAttribute (EditorBrowsableState state) {
browsableState = state;
}
///
/// [To be supplied.]
///
public EditorBrowsableAttribute () :this (EditorBrowsableState.Always) {}
///
/// [To be supplied.]
///
public EditorBrowsableState State {
get { return browsableState;}
}
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
EditorBrowsableAttribute other = obj as EditorBrowsableAttribute;
return (other != null) && other.browsableState == browsableState;
}
public override int GetHashCode() {
return base.GetHashCode();
}
}
///
/// [To be supplied.]
///
public enum EditorBrowsableState
{
///
/// [To be supplied.]
///
Always,
///
/// [To be supplied.]
///
Never,
///
/// [To be supplied.]
///
Advanced
}
}
// 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
- HighlightComponent.cs
- Not.cs
- FrameworkElement.cs
- XmlILOptimizerVisitor.cs
- SimpleTextLine.cs
- DatatypeImplementation.cs
- NullRuntimeConfig.cs
- SubpageParagraph.cs
- WindowsGrip.cs
- X509PeerCertificateAuthenticationElement.cs
- TextMarkerSource.cs
- ConnectionManager.cs
- ItemCheckedEvent.cs
- RadioButtonPopupAdapter.cs
- ConnectionInterfaceCollection.cs
- ReverseInheritProperty.cs
- DomNameTable.cs
- StyleSheetComponentEditor.cs
- CodePrimitiveExpression.cs
- FunctionImportElement.cs
- SecUtil.cs
- PenContext.cs
- BoolExpressionVisitors.cs
- Italic.cs
- GlobalEventManager.cs
- DisposableCollectionWrapper.cs
- MetadataArtifactLoaderComposite.cs
- SettingsPropertyIsReadOnlyException.cs
- CommandExpr.cs
- PenContexts.cs
- StatusStrip.cs
- ListViewEditEventArgs.cs
- XslAst.cs
- IndicCharClassifier.cs
- ExpressionBuilderContext.cs
- RayHitTestParameters.cs
- HandlerBase.cs
- EndPoint.cs
- PartitionerStatic.cs
- ControlBuilderAttribute.cs
- CompositeCollectionView.cs
- SiteMapHierarchicalDataSourceView.cs
- AsynchronousChannelMergeEnumerator.cs
- WhileDesigner.cs
- ProxyRpc.cs
- WindowPattern.cs
- WindowAutomationPeer.cs
- ShutDownListener.cs
- ItemsPresenter.cs
- FormClosingEvent.cs
- LocationUpdates.cs
- TextTreeTextNode.cs
- ErrorFormatterPage.cs
- JsonReaderWriterFactory.cs
- CreatingCookieEventArgs.cs
- HtmlTextArea.cs
- CodeStatement.cs
- RefExpr.cs
- ConcatQueryOperator.cs
- EnumConverter.cs
- TraceEventCache.cs
- FontStretchConverter.cs
- printdlgexmarshaler.cs
- UICuesEvent.cs
- NullToBooleanConverter.cs
- GeneratedCodeAttribute.cs
- XmlValueConverter.cs
- GeometryGroup.cs
- TranslateTransform.cs
- CellRelation.cs
- PreApplicationStartMethodAttribute.cs
- WindowsStartMenu.cs
- ReadOnlyCollectionBase.cs
- ProfileModule.cs
- EndpointAddressMessageFilter.cs
- MobileControlPersister.cs
- OleDbWrapper.cs
- WindowsButton.cs
- ThousandthOfEmRealPoints.cs
- DataGridViewColumnCollection.cs
- TextBoxRenderer.cs
- WindowsListViewGroupSubsetLink.cs
- FieldToken.cs
- ErrorFormatterPage.cs
- StandardOleMarshalObject.cs
- TypeConstant.cs
- DataSetMappper.cs
- XPathQilFactory.cs
- DataShape.cs
- RelatedView.cs
- Model3D.cs
- ErrorsHelper.cs
- WorkflowOwnerAsyncResult.cs
- DataGridViewIntLinkedList.cs
- InstancePersistenceEvent.cs
- TimeSpanStorage.cs
- WindowsSlider.cs
- GeneralTransform.cs
- SiteMapSection.cs
- ConfigurationLocation.cs