Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebBrowsableAttribute.cs / 1 / WebBrowsableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebBrowsableAttribute : Attribute { ////// public static readonly WebBrowsableAttribute Yes = new WebBrowsableAttribute(true); ////// public static readonly WebBrowsableAttribute No = new WebBrowsableAttribute(false); ////// public static readonly WebBrowsableAttribute Default = No; private bool _browsable; ////// public WebBrowsableAttribute() : this(true) { } ////// public WebBrowsableAttribute(bool browsable) { _browsable = browsable; } ////// public bool Browsable { get { return _browsable; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } WebBrowsableAttribute other = obj as WebBrowsableAttribute; return (other != null) && (other.Browsable == Browsable); } /// public override int GetHashCode() { return _browsable.GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebBrowsableAttribute : Attribute { ////// public static readonly WebBrowsableAttribute Yes = new WebBrowsableAttribute(true); ////// public static readonly WebBrowsableAttribute No = new WebBrowsableAttribute(false); ////// public static readonly WebBrowsableAttribute Default = No; private bool _browsable; ////// public WebBrowsableAttribute() : this(true) { } ////// public WebBrowsableAttribute(bool browsable) { _browsable = browsable; } ////// public bool Browsable { get { return _browsable; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } WebBrowsableAttribute other = obj as WebBrowsableAttribute; return (other != null) && (other.Browsable == Browsable); } /// public override int GetHashCode() { return _browsable.GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompilationUtil.cs
- TakeQueryOptionExpression.cs
- SafeEventLogWriteHandle.cs
- PropertyValueChangedEvent.cs
- RSAOAEPKeyExchangeFormatter.cs
- SystemIPGlobalProperties.cs
- MemoryFailPoint.cs
- XamlPathDataSerializer.cs
- CommandLibraryHelper.cs
- InputScopeConverter.cs
- ErrorStyle.cs
- ConsoleCancelEventArgs.cs
- Char.cs
- ToolStripLabel.cs
- MdiWindowListItemConverter.cs
- SchemaElementLookUpTableEnumerator.cs
- X509ClientCertificateAuthenticationElement.cs
- PeerPresenceInfo.cs
- WebPartCloseVerb.cs
- CounterCreationDataConverter.cs
- TouchDevice.cs
- TemplateBaseAction.cs
- UIPropertyMetadata.cs
- DbCommandTree.cs
- FloaterBaseParaClient.cs
- DropSourceBehavior.cs
- StyleHelper.cs
- SByteStorage.cs
- CaretElement.cs
- ClientBuildManagerCallback.cs
- FileSystemEventArgs.cs
- DetailsViewInsertedEventArgs.cs
- ObfuscateAssemblyAttribute.cs
- FileSystemInfo.cs
- DbConnectionFactory.cs
- SpoolingTask.cs
- BehaviorEditorPart.cs
- ObjectQueryExecutionPlan.cs
- SigningCredentials.cs
- TraceHandler.cs
- ADMembershipUser.cs
- FileDialogPermission.cs
- VBIdentifierName.cs
- ActivationArguments.cs
- StrongNameIdentityPermission.cs
- WebBrowserPermission.cs
- AttributeEmitter.cs
- ThreadPool.cs
- PointF.cs
- PathBox.cs
- InstanceValue.cs
- WebMessageFormatHelper.cs
- CorrelationValidator.cs
- RC2CryptoServiceProvider.cs
- ObjectQuery_EntitySqlExtensions.cs
- TablePattern.cs
- VirtualPathData.cs
- XamlReader.cs
- WindowsFormsSectionHandler.cs
- WebPartTransformerAttribute.cs
- DataServiceHostWrapper.cs
- TextServicesManager.cs
- TransformCryptoHandle.cs
- DebugView.cs
- IDictionary.cs
- SessionStateModule.cs
- AlternationConverter.cs
- PersonalizationDictionary.cs
- TextSpanModifier.cs
- StylusPointPropertyUnit.cs
- LinkedList.cs
- HttpResponseWrapper.cs
- EdmToObjectNamespaceMap.cs
- FloaterParaClient.cs
- ImmutableAssemblyCacheEntry.cs
- StateMachineWorkflow.cs
- SuppressMergeCheckAttribute.cs
- MenuItem.cs
- SHA1CryptoServiceProvider.cs
- CultureInfo.cs
- ShaderEffect.cs
- EpmTargetTree.cs
- RIPEMD160Managed.cs
- TypeUsageBuilder.cs
- WpfPayload.cs
- MatrixCamera.cs
- CodeCommentStatement.cs
- Ipv6Element.cs
- basevalidator.cs
- NativeMethods.cs
- WebPartActionVerb.cs
- FlowNode.cs
- StretchValidation.cs
- VisualBrush.cs
- StateDesigner.cs
- XmlCustomFormatter.cs
- EventBuilder.cs
- InvokeGenerator.cs
- ExtractedStateEntry.cs
- StdValidatorsAndConverters.cs