Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextEditorCopyPaste.cs
- FileLoadException.cs
- MetadataCollection.cs
- ListViewDeletedEventArgs.cs
- XmlSchemaException.cs
- EncoderExceptionFallback.cs
- MruCache.cs
- MediaPlayer.cs
- Logging.cs
- SizeAnimation.cs
- PersonalizablePropertyEntry.cs
- BaseValidator.cs
- XmlRawWriter.cs
- RegexMatch.cs
- CredentialCache.cs
- PixelFormats.cs
- MeasureData.cs
- StoreItemCollection.cs
- AnnotationDocumentPaginator.cs
- SoapCodeExporter.cs
- PublishLicense.cs
- IsolatedStorage.cs
- NamedPipeChannelFactory.cs
- DbParameterHelper.cs
- SqlSelectStatement.cs
- TextTreeUndo.cs
- BitmapInitialize.cs
- WindowsSpinner.cs
- GridViewColumnHeaderAutomationPeer.cs
- XmlTextWriter.cs
- XmlSchemaSimpleContent.cs
- Line.cs
- X509Utils.cs
- CultureInfo.cs
- HttpVersion.cs
- VideoDrawing.cs
- PerspectiveCamera.cs
- ObjectQuery.cs
- CompleteWizardStep.cs
- ComNativeDescriptor.cs
- SqlCacheDependencyDatabaseCollection.cs
- ConfigurationLoader.cs
- FlowDocument.cs
- InstanceData.cs
- ResourceContainer.cs
- ProfilePropertySettingsCollection.cs
- XmlBinaryReader.cs
- ParseChildrenAsPropertiesAttribute.cs
- PaintValueEventArgs.cs
- SystemFonts.cs
- StaticExtension.cs
- OletxVolatileEnlistment.cs
- Vector3DCollection.cs
- InputScopeConverter.cs
- DataGridViewSortCompareEventArgs.cs
- ImageBrush.cs
- TextTreeRootNode.cs
- Compilation.cs
- AstNode.cs
- MediaTimeline.cs
- DbConnectionPool.cs
- XhtmlBasicPanelAdapter.cs
- MimeReflector.cs
- CapabilitiesSection.cs
- OptimizedTemplateContent.cs
- XmlSchemaCollection.cs
- ScriptingSectionGroup.cs
- WebRequestModuleElementCollection.cs
- StructuredProperty.cs
- MailWebEventProvider.cs
- XmlSignificantWhitespace.cs
- WSHttpTransportSecurityElement.cs
- ConstructorBuilder.cs
- PolicyLevel.cs
- HtmlSelect.cs
- WebControlsSection.cs
- GenericUriParser.cs
- DrawingAttributeSerializer.cs
- DialogResultConverter.cs
- Int64Converter.cs
- URLString.cs
- List.cs
- PerformanceCounterManager.cs
- StrokeDescriptor.cs
- UnauthorizedAccessException.cs
- SpellerError.cs
- HGlobalSafeHandle.cs
- GeneralTransform3D.cs
- ConfigXmlWhitespace.cs
- Visual3D.cs
- HScrollBar.cs
- AttributeCollection.cs
- EntityObject.cs
- RequestQueryParser.cs
- TimersDescriptionAttribute.cs
- MetadataArtifactLoaderFile.cs
- LocalizableResourceBuilder.cs
- Missing.cs
- ValidationRule.cs
- AffineTransform3D.cs