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
- FontDialog.cs
- VarInfo.cs
- StylusPointProperties.cs
- SoapObjectInfo.cs
- EventMap.cs
- UnicodeEncoding.cs
- VisualBasicExpressionConverter.cs
- NativeRecognizer.cs
- Int16AnimationBase.cs
- EntityAdapter.cs
- AssemblyInfo.cs
- KeySplineConverter.cs
- ASCIIEncoding.cs
- FontUnit.cs
- TextMarkerSource.cs
- File.cs
- CapacityStreamGeometryContext.cs
- UIElementCollection.cs
- GenericTypeParameterConverter.cs
- ImageFormat.cs
- PngBitmapDecoder.cs
- MaskedTextBoxTextEditorDropDown.cs
- TrustLevelCollection.cs
- EntityModelBuildProvider.cs
- TokenFactoryBase.cs
- XmlAggregates.cs
- MemoryFailPoint.cs
- ControlBuilder.cs
- Opcode.cs
- CompositeFontInfo.cs
- SettingsPropertyValue.cs
- WorkflowApplicationCompletedEventArgs.cs
- GlyphsSerializer.cs
- Int16.cs
- SqlDataSourceDesigner.cs
- TypefaceMetricsCache.cs
- WebPartConnectionCollection.cs
- MetaType.cs
- TextRange.cs
- CodeSnippetTypeMember.cs
- DependentList.cs
- NetworkInterface.cs
- ReaderWriterLock.cs
- DrawTreeNodeEventArgs.cs
- IBuiltInEvidence.cs
- PanningMessageFilter.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- MethodCallTranslator.cs
- webeventbuffer.cs
- OneToOneMappingSerializer.cs
- ManagedWndProcTracker.cs
- AuthenticationModeHelper.cs
- WebDescriptionAttribute.cs
- ManipulationStartingEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- ConfigurationLocation.cs
- ReflectEventDescriptor.cs
- DBSchemaTable.cs
- XXXOnTypeBuilderInstantiation.cs
- DocumentGrid.cs
- CompiledXpathExpr.cs
- CultureTableRecord.cs
- FontEditor.cs
- PersonalizationStateInfo.cs
- DataGridViewMethods.cs
- ForeignKeyConstraint.cs
- PixelShader.cs
- StoreConnection.cs
- DictionaryChange.cs
- DTCTransactionManager.cs
- CompareInfo.cs
- GraphicsContext.cs
- HtmlTableRowCollection.cs
- FileAuthorizationModule.cs
- FtpRequestCacheValidator.cs
- GridViewUpdateEventArgs.cs
- RSAPKCS1SignatureDeformatter.cs
- WorkflowRequestContext.cs
- WebPartDisplayModeCollection.cs
- ColumnBinding.cs
- BrowserDefinitionCollection.cs
- SolidBrush.cs
- FixedDocumentSequencePaginator.cs
- TreeView.cs
- FactoryGenerator.cs
- DoubleConverter.cs
- Choices.cs
- DataGrid.cs
- TextContainer.cs
- ExceptQueryOperator.cs
- ArrowControl.xaml.cs
- CollectionViewSource.cs
- CustomCredentialPolicy.cs
- FormsAuthenticationTicket.cs
- DBSqlParserColumnCollection.cs
- BinaryNode.cs
- SequentialUshortCollection.cs
- RegexFCD.cs
- WebHttpSecurityElement.cs
- ApplicationInfo.cs