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
- ControlAdapter.cs
- ArgumentOutOfRangeException.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- QilGeneratorEnv.cs
- CacheHelper.cs
- QuaternionAnimation.cs
- MultiBindingExpression.cs
- ColumnMapCopier.cs
- AtomPub10CategoriesDocumentFormatter.cs
- x509utils.cs
- DashStyle.cs
- ProcessHost.cs
- Wildcard.cs
- TerminateSequence.cs
- PrintDialog.cs
- WmfPlaceableFileHeader.cs
- Pen.cs
- SendMailErrorEventArgs.cs
- DynamicILGenerator.cs
- ClosableStream.cs
- PointCollectionConverter.cs
- AutoSizeComboBox.cs
- TimelineCollection.cs
- RequestBringIntoViewEventArgs.cs
- TransformPattern.cs
- DataControlFieldHeaderCell.cs
- NumericUpDown.cs
- WindowsToolbar.cs
- InternalSafeNativeMethods.cs
- InitializerFacet.cs
- FieldBuilder.cs
- BooleanConverter.cs
- _TimerThread.cs
- RootProfilePropertySettingsCollection.cs
- _LocalDataStore.cs
- FontFamilyConverter.cs
- ColorContext.cs
- SqlBulkCopy.cs
- Matrix.cs
- HttpResponseInternalBase.cs
- EventLogRecord.cs
- Tuple.cs
- SmiContext.cs
- DataGridViewMethods.cs
- CompilerState.cs
- InputReport.cs
- UnionExpr.cs
- ConfigDefinitionUpdates.cs
- thaishape.cs
- Win32KeyboardDevice.cs
- FlowDocumentPage.cs
- ObjectPersistData.cs
- ToolStripContainer.cs
- InvalidProgramException.cs
- Binding.cs
- ProxyWebPartManager.cs
- ModuleConfigurationInfo.cs
- controlskin.cs
- BadImageFormatException.cs
- SessionStateItemCollection.cs
- GeneralTransform3DGroup.cs
- CollectionBuilder.cs
- TimersDescriptionAttribute.cs
- FontDialog.cs
- PolicyValidationException.cs
- PropertySourceInfo.cs
- RijndaelManagedTransform.cs
- ArraySet.cs
- XsltInput.cs
- AsymmetricSignatureFormatter.cs
- ExtenderProviderService.cs
- ProxyHelper.cs
- SQLBoolean.cs
- SmtpSection.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DataGridPageChangedEventArgs.cs
- SqlUnionizer.cs
- NavigateEvent.cs
- RegistryHandle.cs
- AnnotationObservableCollection.cs
- followingquery.cs
- AutomationPropertyInfo.cs
- DBConnection.cs
- XPathParser.cs
- CaseStatementProjectedSlot.cs
- SoapObjectWriter.cs
- SourceInterpreter.cs
- HideDisabledControlAdapter.cs
- CodeExpressionStatement.cs
- WebDescriptionAttribute.cs
- BrowsableAttribute.cs
- ObjectRef.cs
- MultiplexingFormatMapping.cs
- WriterOutput.cs
- PerformanceCountersElement.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FaultContext.cs
- DesignerWidgets.cs
- RegexCode.cs
- ReceiveContent.cs