Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / HtmlControlPersistable.cs / 1 / 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
- WebContext.cs
- MediaTimeline.cs
- ToolStripComboBox.cs
- ProgressiveCrcCalculatingStream.cs
- XamlReaderHelper.cs
- GenericWebPart.cs
- COM2TypeInfoProcessor.cs
- AbstractExpressions.cs
- FeatureSupport.cs
- UIElementCollection.cs
- DesignerWebPartChrome.cs
- ListChangedEventArgs.cs
- TokenFactoryFactory.cs
- ZipIOCentralDirectoryBlock.cs
- PackageDigitalSignature.cs
- HtmlTextArea.cs
- HideDisabledControlAdapter.cs
- FilterUserControlBase.cs
- _NtlmClient.cs
- Site.cs
- Literal.cs
- GeneralTransform3DTo2D.cs
- TextBoxAutoCompleteSourceConverter.cs
- XmlSchemaType.cs
- SymmetricAlgorithm.cs
- AssemblyInfo.cs
- ServiceModelConfigurationSection.cs
- PropertyNames.cs
- StatusStrip.cs
- OleDbDataReader.cs
- InvalidPrinterException.cs
- StorageScalarPropertyMapping.cs
- CipherData.cs
- UInt16.cs
- ClientConfigurationSystem.cs
- EntityKeyElement.cs
- HttpWebResponse.cs
- PolyLineSegment.cs
- MouseActionConverter.cs
- XPathNavigatorKeyComparer.cs
- LinqDataSourceInsertEventArgs.cs
- UndirectedGraph.cs
- FrameworkContentElement.cs
- XamlVector3DCollectionSerializer.cs
- WebBrowser.cs
- WmlSelectionListAdapter.cs
- ReadContentAsBinaryHelper.cs
- PreviewPageInfo.cs
- ByteRangeDownloader.cs
- MouseEventArgs.cs
- TypeBuilderInstantiation.cs
- WmpBitmapDecoder.cs
- PriorityChain.cs
- Mappings.cs
- COM2TypeInfoProcessor.cs
- XmlReflectionImporter.cs
- CommonGetThemePartSize.cs
- EntityParameterCollection.cs
- InkPresenterAutomationPeer.cs
- codemethodreferenceexpression.cs
- WebExceptionStatus.cs
- ApplicationDirectory.cs
- StylusPlugin.cs
- AuthenticationModuleElement.cs
- RegexCode.cs
- UpdatePanel.cs
- ExpressionVisitor.cs
- ReliabilityContractAttribute.cs
- SmiEventSink_Default.cs
- CodeTypeReferenceExpression.cs
- AssemblyCache.cs
- SharedUtils.cs
- ToolStripDesigner.cs
- TextOnlyOutput.cs
- ProcessHostMapPath.cs
- DocumentXPathNavigator.cs
- SemanticValue.cs
- TabOrder.cs
- NotifyParentPropertyAttribute.cs
- DataRowView.cs
- ApplicationDirectory.cs
- _Rfc2616CacheValidators.cs
- DesignerLoader.cs
- WebPartTransformerCollection.cs
- SspiNegotiationTokenProvider.cs
- InputGestureCollection.cs
- HttpProfileGroupBase.cs
- FtpWebResponse.cs
- FilteredAttributeCollection.cs
- PassportAuthenticationEventArgs.cs
- ServicesUtilities.cs
- BuildResult.cs
- WebEvents.cs
- DesignerOptionService.cs
- ValidationErrorCollection.cs
- ProviderMetadataCachedInformation.cs
- TextBox.cs
- LingerOption.cs
- RelatedPropertyManager.cs
- ObjectQuery_EntitySqlExtensions.cs