Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLDateTime.cs
- JsonReader.cs
- CategoryNameCollection.cs
- DrawingDrawingContext.cs
- SerializerProvider.cs
- SecurityException.cs
- XmlIlGenerator.cs
- X509ScopedServiceCertificateElement.cs
- RectAnimationClockResource.cs
- ThemeInfoAttribute.cs
- EnvelopedPkcs7.cs
- AutomationPeer.cs
- FastEncoder.cs
- _RequestCacheProtocol.cs
- StrokeFIndices.cs
- TableCellAutomationPeer.cs
- CompareValidator.cs
- XmlSchemaAny.cs
- SqlAliasesReferenced.cs
- CodeDelegateCreateExpression.cs
- SerializableAttribute.cs
- ThemeDirectoryCompiler.cs
- FileLogRecordEnumerator.cs
- DataTableClearEvent.cs
- Positioning.cs
- ReliabilityContractAttribute.cs
- Win32.cs
- CacheChildrenQuery.cs
- BaseWebProxyFinder.cs
- MatrixValueSerializer.cs
- GACMembershipCondition.cs
- TextEditorLists.cs
- InertiaExpansionBehavior.cs
- DeferredTextReference.cs
- RealizationContext.cs
- MULTI_QI.cs
- ErrorWebPart.cs
- _SslSessionsCache.cs
- XmlnsCache.cs
- WebPartTransformerAttribute.cs
- _MultipleConnectAsync.cs
- HintTextConverter.cs
- XmlIlGenerator.cs
- ResourceCollectionInfo.cs
- SoapTypeAttribute.cs
- CategoryAttribute.cs
- PDBReader.cs
- TextEffectResolver.cs
- LocalServiceSecuritySettingsElement.cs
- SqlMetaData.cs
- TreeNodeStyleCollection.cs
- ResourceReferenceExpression.cs
- counter.cs
- Repeater.cs
- Propagator.cs
- SqlUnionizer.cs
- RequestCacheEntry.cs
- _OverlappedAsyncResult.cs
- SelfIssuedAuthRSACryptoProvider.cs
- WebConfigurationHost.cs
- DefaultClaimSet.cs
- Visitor.cs
- DirectionalLight.cs
- EdmItemError.cs
- XmlElementAttribute.cs
- WebPartMinimizeVerb.cs
- EditingCommands.cs
- Block.cs
- StdValidatorsAndConverters.cs
- QuaternionConverter.cs
- ListenerConfig.cs
- FileLevelControlBuilderAttribute.cs
- HasActivatableWorkflowEvent.cs
- WeakHashtable.cs
- GenericRootAutomationPeer.cs
- TransactionProtocol.cs
- DrawToolTipEventArgs.cs
- SamlAuthenticationClaimResource.cs
- TransformerInfo.cs
- XmlSignatureProperties.cs
- ByteAnimation.cs
- ScriptingJsonSerializationSection.cs
- RequestCachingSection.cs
- Profiler.cs
- ReferenceTypeElement.cs
- ScriptControl.cs
- FlowDecisionDesigner.xaml.cs
- VScrollProperties.cs
- SizeFConverter.cs
- ModuleElement.cs
- EncodingInfo.cs
- UserUseLicenseDictionaryLoader.cs
- PropertyInfoSet.cs
- DocumentXPathNavigator.cs
- SubMenuStyle.cs
- DesignerActionKeyboardBehavior.cs
- DataGridViewCellCollection.cs
- LogLogRecordEnumerator.cs
- SQLChars.cs
- Directory.cs