Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ReadOnlyTernaryTree.cs
- ByteRangeDownloader.cs
- TabletCollection.cs
- DaylightTime.cs
- AppSecurityManager.cs
- TemplatePartAttribute.cs
- XhtmlBasicPanelAdapter.cs
- METAHEADER.cs
- SerializationFieldInfo.cs
- COM2ColorConverter.cs
- ViewDesigner.cs
- ArithmeticException.cs
- XmlSchemaCollection.cs
- ComboBox.cs
- FlowDocumentReader.cs
- Clause.cs
- FixedSOMSemanticBox.cs
- DataGridViewRowConverter.cs
- View.cs
- LinqDataSourceHelper.cs
- CroppedBitmap.cs
- ExpressionEvaluator.cs
- SEHException.cs
- MultiTouchSystemGestureLogic.cs
- GraphicsPathIterator.cs
- WindowsFormsLinkLabel.cs
- SafeRegistryKey.cs
- OletxEnlistment.cs
- DeviceContexts.cs
- ListSortDescription.cs
- WindowsAltTab.cs
- LinqDataView.cs
- CryptoKeySecurity.cs
- Wizard.cs
- XmlDocumentType.cs
- SQLBytes.cs
- NavigationProgressEventArgs.cs
- GACMembershipCondition.cs
- PagedControl.cs
- ProtocolsConfigurationHandler.cs
- RevocationPoint.cs
- DataGridViewBindingCompleteEventArgs.cs
- NativeCppClassAttribute.cs
- ErrorFormatterPage.cs
- ObjectTag.cs
- RotationValidation.cs
- ThemeDirectoryCompiler.cs
- FileDialog_Vista.cs
- DecodeHelper.cs
- LightweightCodeGenerator.cs
- ComponentCommands.cs
- FontFamily.cs
- ParamArrayAttribute.cs
- TraceXPathNavigator.cs
- XPathBuilder.cs
- DefaultShape.cs
- PropertySourceInfo.cs
- Typeface.cs
- ADMembershipProvider.cs
- DataGridViewColumnConverter.cs
- RelationshipWrapper.cs
- CompilerCollection.cs
- BitmapSizeOptions.cs
- AsnEncodedData.cs
- _AuthenticationState.cs
- RawStylusInput.cs
- WebPartPersonalization.cs
- XPathArrayIterator.cs
- SharedUtils.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- PathGeometry.cs
- ReachUIElementCollectionSerializer.cs
- DataSvcMapFile.cs
- FrameworkElement.cs
- DeclaredTypeValidator.cs
- TreeNodeBindingCollection.cs
- RectangleGeometry.cs
- Stylesheet.cs
- DetailsViewPagerRow.cs
- QilXmlReader.cs
- PackagingUtilities.cs
- WCFModelStrings.Designer.cs
- PropagatorResult.cs
- ProcessRequestArgs.cs
- TripleDES.cs
- StringSorter.cs
- BrowserInteropHelper.cs
- FieldToken.cs
- PeerOutputChannel.cs
- Vector3DConverter.cs
- TraceListeners.cs
- TextServicesHost.cs
- ConfigurationPermission.cs
- TextEditorTyping.cs
- ParamArrayAttribute.cs
- GlyphsSerializer.cs
- TrustLevel.cs
- ProfileEventArgs.cs
- DuplicateDetector.cs
- WindowsFormsHostAutomationPeer.cs