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
- MarginsConverter.cs
- NominalTypeEliminator.cs
- TemplateBuilder.cs
- AssemblyBuilder.cs
- SecurityResources.cs
- InputLanguage.cs
- MD5CryptoServiceProvider.cs
- Rotation3DAnimationBase.cs
- XmlNamedNodeMap.cs
- BufferAllocator.cs
- StateManagedCollection.cs
- IISUnsafeMethods.cs
- OutputCacheSettingsSection.cs
- Error.cs
- DesignBindingValueUIHandler.cs
- RijndaelCryptoServiceProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ToolStripSplitButton.cs
- GenericEnumConverter.cs
- ValueProviderWrapper.cs
- XsltArgumentList.cs
- SqlDependencyUtils.cs
- CodeTypeParameter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- CheckoutException.cs
- RichTextBoxConstants.cs
- KeyToListMap.cs
- EncodingNLS.cs
- safelinkcollection.cs
- SqlDataSourceView.cs
- figurelength.cs
- GridLength.cs
- figurelength.cs
- WebBrowserEvent.cs
- TextTreeNode.cs
- SizeFConverter.cs
- XmlSchema.cs
- securitycriticaldataClass.cs
- PersianCalendar.cs
- EventLogInformation.cs
- TypefaceMetricsCache.cs
- DataColumnMappingCollection.cs
- CubicEase.cs
- PolyLineSegmentFigureLogic.cs
- BamlVersionHeader.cs
- InputScopeNameConverter.cs
- SafeProcessHandle.cs
- CodeMemberField.cs
- DataKeyArray.cs
- SQLInt64.cs
- HttpClientCredentialType.cs
- SingleKeyFrameCollection.cs
- DocumentApplicationJournalEntryEventArgs.cs
- SystemIdentity.cs
- StandardOleMarshalObject.cs
- _AutoWebProxyScriptEngine.cs
- NotFiniteNumberException.cs
- ReplyAdapterChannelListener.cs
- SqlServices.cs
- TextRenderer.cs
- Button.cs
- ControlParameter.cs
- IPPacketInformation.cs
- HttpDictionary.cs
- BinaryFormatterSinks.cs
- ImageDrawing.cs
- Item.cs
- ContextInformation.cs
- XmlSchemaAnyAttribute.cs
- ParallelSeparator.xaml.cs
- MethodBody.cs
- ImpersonationContext.cs
- ProcessThreadCollection.cs
- TableSectionStyle.cs
- SubpageParagraph.cs
- StorageBasedPackageProperties.cs
- CorrelationToken.cs
- TimelineCollection.cs
- DirectoryInfo.cs
- DataGridViewCellStyle.cs
- RewritingSimplifier.cs
- LowerCaseStringConverter.cs
- EmptyStringExpandableObjectConverter.cs
- MonthCalendarDesigner.cs
- ControlBindingsCollection.cs
- MessageLogger.cs
- VisualBrush.cs
- UxThemeWrapper.cs
- TypeUtil.cs
- XmlUnspecifiedAttribute.cs
- SchemaExporter.cs
- ping.cs
- DataGridLinkButton.cs
- X509CertificateCollection.cs
- QuotedStringFormatReader.cs
- WinInetCache.cs
- FastEncoderStatics.cs
- PersistenceProviderBehavior.cs
- RelationshipConverter.cs
- WebChannelFactory.cs