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
- SourceChangedEventArgs.cs
- TypeTypeConverter.cs
- RemoteWebConfigurationHost.cs
- ProxyWebPartConnectionCollection.cs
- DataGridColumnsPage.cs
- ObjectNotFoundException.cs
- DataGridDesigner.cs
- ZoomPercentageConverter.cs
- EditorZone.cs
- SortDescription.cs
- TableLayoutSettings.cs
- ObjectPersistData.cs
- ThreadStartException.cs
- FormatSettings.cs
- ChangeInterceptorAttribute.cs
- IpcChannel.cs
- MailAddress.cs
- StrongBox.cs
- Matrix.cs
- IndexedString.cs
- AuthorizationContext.cs
- oledbconnectionstring.cs
- login.cs
- UserInitiatedNavigationPermission.cs
- CharacterBufferReference.cs
- CustomCategoryAttribute.cs
- Error.cs
- ErrorStyle.cs
- TargetPerspective.cs
- ObjectDataSource.cs
- XsltQilFactory.cs
- DataObjectCopyingEventArgs.cs
- SelectedGridItemChangedEvent.cs
- XmlHierarchyData.cs
- DocumentPropertiesDialog.cs
- TrackingProfileDeserializationException.cs
- KeyboardDevice.cs
- HostingEnvironmentSection.cs
- xsdvalidator.cs
- SessionEndingCancelEventArgs.cs
- FilterableAttribute.cs
- HwndSourceKeyboardInputSite.cs
- CodeTypeDeclarationCollection.cs
- ChannelEndpointElementCollection.cs
- WebServicesDescriptionAttribute.cs
- FormatConvertedBitmap.cs
- WebDisplayNameAttribute.cs
- ErrorTableItemStyle.cs
- TaskFileService.cs
- ListViewGroup.cs
- ListViewItem.cs
- WebPartMenuStyle.cs
- XmlValidatingReaderImpl.cs
- MDIWindowDialog.cs
- EntryIndex.cs
- FindResponse.cs
- PenCursorManager.cs
- JournalNavigationScope.cs
- ActivityValidationServices.cs
- SafeCryptoHandles.cs
- WebConfigurationHostFileChange.cs
- CodeSnippetTypeMember.cs
- CreateDataSourceDialog.cs
- AgileSafeNativeMemoryHandle.cs
- Model3D.cs
- CustomValidator.cs
- DecimalAnimationBase.cs
- PrtTicket_Public.cs
- FaultReason.cs
- DeobfuscatingStream.cs
- Classification.cs
- AvTraceFormat.cs
- FormViewCommandEventArgs.cs
- XmlStreamedByteStreamReader.cs
- DeclarationUpdate.cs
- ClientConvert.cs
- FileSecurity.cs
- SchemaNotation.cs
- ResXResourceSet.cs
- HyperlinkAutomationPeer.cs
- AuthenticationModuleElementCollection.cs
- GlyphRun.cs
- SelectionChangedEventArgs.cs
- ListControlDataBindingHandler.cs
- ReaderWriterLock.cs
- HttpListenerRequest.cs
- SpellerHighlightLayer.cs
- TextEditorCharacters.cs
- SqlTypesSchemaImporter.cs
- DesignerListAdapter.cs
- Configuration.cs
- BooleanSwitch.cs
- OpCodes.cs
- TypeContext.cs
- WebConfigurationHostFileChange.cs
- MenuItemAutomationPeer.cs
- AVElementHelper.cs
- XmlSchemaSimpleTypeUnion.cs
- MobileCapabilities.cs
- ChangePasswordDesigner.cs