Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControlPersistable.cs / 1305376 / HtmlControlPersistable.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.ComponentModel; using System; [AttributeUsage(AttributeTargets.Property)] internal sealed class HtmlControlPersistableAttribute : Attribute { internal static readonly HtmlControlPersistableAttribute Yes = new HtmlControlPersistableAttribute(true); internal static readonly HtmlControlPersistableAttribute No = new HtmlControlPersistableAttribute(false); internal static readonly HtmlControlPersistableAttribute Default = Yes; private bool persistable = true; internal HtmlControlPersistableAttribute(bool persistable) { this.persistable = persistable; } internal bool HtmlControlPersistable { get { return persistable; } } public override bool Equals(object obj) { if (obj == this) { return true; } HtmlControlPersistableAttribute other = obj as HtmlControlPersistableAttribute; return (other != null) && other.HtmlControlPersistable == persistable; } public override int GetHashCode() { return persistable.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 { using System.ComponentModel; using System; [AttributeUsage(AttributeTargets.Property)] internal sealed class HtmlControlPersistableAttribute : Attribute { internal static readonly HtmlControlPersistableAttribute Yes = new HtmlControlPersistableAttribute(true); internal static readonly HtmlControlPersistableAttribute No = new HtmlControlPersistableAttribute(false); internal static readonly HtmlControlPersistableAttribute Default = Yes; private bool persistable = true; internal HtmlControlPersistableAttribute(bool persistable) { this.persistable = persistable; } internal bool HtmlControlPersistable { get { return persistable; } } public override bool Equals(object obj) { if (obj == this) { return true; } HtmlControlPersistableAttribute other = obj as HtmlControlPersistableAttribute; return (other != null) && other.HtmlControlPersistable == persistable; } public override int GetHashCode() { return persistable.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
- SspiNegotiationTokenAuthenticator.cs
- PlacementWorkspace.cs
- XmlDsigSep2000.cs
- XmlTextAttribute.cs
- util.cs
- SelectorAutomationPeer.cs
- XslCompiledTransform.cs
- Int32Rect.cs
- QueryStringParameter.cs
- DataGridCommandEventArgs.cs
- FloatSumAggregationOperator.cs
- RadioButtonFlatAdapter.cs
- CompleteWizardStep.cs
- DataRelation.cs
- RectConverter.cs
- DataGridGeneralPage.cs
- PresentationAppDomainManager.cs
- XmlILStorageConverter.cs
- HttpAsyncResult.cs
- CopyOnWriteList.cs
- TdsParameterSetter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- UIElementHelper.cs
- MiniConstructorInfo.cs
- CodeDomExtensionMethods.cs
- UICuesEvent.cs
- BoundField.cs
- ApplyImportsAction.cs
- IssuanceTokenProviderState.cs
- CodeArgumentReferenceExpression.cs
- IndentedTextWriter.cs
- GridViewColumn.cs
- InvokeBase.cs
- TileModeValidation.cs
- SocketElement.cs
- WebPartDescriptionCollection.cs
- StrokeCollection.cs
- CodeDelegateCreateExpression.cs
- HttpProfileBase.cs
- IdentitySection.cs
- FixedPageAutomationPeer.cs
- unsafeIndexingFilterStream.cs
- SharedUtils.cs
- VarRefManager.cs
- wpf-etw.cs
- SystemDropShadowChrome.cs
- XPathBinder.cs
- _UncName.cs
- Durable.cs
- TextTrailingCharacterEllipsis.cs
- ListCollectionView.cs
- ErrorFormatterPage.cs
- CodeCommentStatement.cs
- IdentityModelDictionary.cs
- Transform3D.cs
- SecurityDocument.cs
- RenderData.cs
- connectionpool.cs
- BadImageFormatException.cs
- CodeSnippetCompileUnit.cs
- Single.cs
- XhtmlStyleClass.cs
- XmlILStorageConverter.cs
- PageAdapter.cs
- ImageMapEventArgs.cs
- DesignerCategoryAttribute.cs
- WebDescriptionAttribute.cs
- XmlDictionaryWriter.cs
- GridViewAutomationPeer.cs
- DataColumnMapping.cs
- SqlMethodCallConverter.cs
- templategroup.cs
- UiaCoreProviderApi.cs
- KnownBoxes.cs
- Errors.cs
- LiteralTextContainerControlBuilder.cs
- DrawingServices.cs
- SqlAliasesReferenced.cs
- Content.cs
- Parsers.cs
- Types.cs
- ToolTip.cs
- DesignerForm.cs
- DiagnosticsElement.cs
- httpstaticobjectscollection.cs
- FutureFactory.cs
- MenuCommands.cs
- AssertUtility.cs
- StringInfo.cs
- SerializationAttributes.cs
- Span.cs
- IChannel.cs
- StaticSiteMapProvider.cs
- BoundConstants.cs
- SymmetricKey.cs
- columnmapkeybuilder.cs
- VectorKeyFrameCollection.cs
- UnsafeNativeMethods.cs
- ClientSideQueueItem.cs
- MessageBox.cs