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
- EntityRecordInfo.cs
- SqlError.cs
- ForwardPositionQuery.cs
- HttpPostedFile.cs
- PropertyGridView.cs
- AccessorTable.cs
- Pen.cs
- OleDbDataAdapter.cs
- OracleMonthSpan.cs
- Timer.cs
- FeatureManager.cs
- RequestValidator.cs
- EntityProviderServices.cs
- SqlServices.cs
- SortKey.cs
- LinkClickEvent.cs
- BitmapPalette.cs
- ClosableStream.cs
- SubclassTypeValidatorAttribute.cs
- RealizationContext.cs
- EntityDataSourceMemberPath.cs
- TableItemPatternIdentifiers.cs
- DetailsViewDeletedEventArgs.cs
- Interlocked.cs
- tabpagecollectioneditor.cs
- XmlSchemaComplexType.cs
- SqlCommand.cs
- TypeConverterHelper.cs
- BulletedList.cs
- BitmapDownload.cs
- DES.cs
- TcpDuplicateContext.cs
- PersonalizationStateQuery.cs
- DeobfuscatingStream.cs
- PersonalizationStateInfoCollection.cs
- input.cs
- NameValueConfigurationElement.cs
- precedingsibling.cs
- TemplatedMailWebEventProvider.cs
- ApplicationInfo.cs
- Visual3DCollection.cs
- SystemException.cs
- CachedFontFamily.cs
- Stylus.cs
- TextServicesHost.cs
- SystemResourceKey.cs
- AsymmetricSignatureDeformatter.cs
- JsonDeserializer.cs
- unsafenativemethodstextservices.cs
- WinInet.cs
- Privilege.cs
- CheckBoxFlatAdapter.cs
- WorkflowApplicationEventArgs.cs
- WebPartDescriptionCollection.cs
- AliasedSlot.cs
- WebDescriptionAttribute.cs
- TextModifier.cs
- TransformGroup.cs
- VisualStyleRenderer.cs
- HybridDictionary.cs
- QilInvokeEarlyBound.cs
- IgnorePropertiesAttribute.cs
- ApplicationServiceManager.cs
- BitStack.cs
- StreamResourceInfo.cs
- SourceLocation.cs
- WebInvokeAttribute.cs
- XmlTypeAttribute.cs
- SqlBooleanMismatchVisitor.cs
- ThicknessKeyFrameCollection.cs
- EventHandlerList.cs
- XsltConvert.cs
- XPathNodeInfoAtom.cs
- ProviderConnectionPointCollection.cs
- QueuePropertyVariants.cs
- DependencyObjectPropertyDescriptor.cs
- TypeGeneratedEventArgs.cs
- DesignerCategoryAttribute.cs
- SymmetricAlgorithm.cs
- WebPartsPersonalization.cs
- FloaterBaseParagraph.cs
- BCryptNative.cs
- DbConnectionPoolGroupProviderInfo.cs
- ServicesUtilities.cs
- RuntimeCompatibilityAttribute.cs
- SqlSelectStatement.cs
- FlowLayout.cs
- ChangeConflicts.cs
- BinaryNode.cs
- CounterCreationData.cs
- ReadOnlyDictionary.cs
- DesignerUtility.cs
- WindowsGraphics.cs
- ErrorFormatterPage.cs
- NamedPermissionSet.cs
- _SafeNetHandles.cs
- WorkflowTimerService.cs
- NotFiniteNumberException.cs
- ChildDocumentBlock.cs
- ManipulationDelta.cs