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
- ImageFormatConverter.cs
- SID.cs
- RMEnrollmentPage1.cs
- BaseDataListDesigner.cs
- ValueTypeFixupInfo.cs
- DbConnectionPoolIdentity.cs
- IdentitySection.cs
- FileRecordSequenceHelper.cs
- IndicShape.cs
- ZipIOBlockManager.cs
- SimpleBitVector32.cs
- MimeAnyImporter.cs
- BitmapImage.cs
- ShutDownListener.cs
- Merger.cs
- DefaultProxySection.cs
- XpsDocument.cs
- HtmlTableRow.cs
- HeaderUtility.cs
- SafeLibraryHandle.cs
- HitTestParameters.cs
- DiscoveryExceptionDictionary.cs
- CategoriesDocumentFormatter.cs
- FlagsAttribute.cs
- VersionPair.cs
- HttpModuleAction.cs
- _AcceptOverlappedAsyncResult.cs
- DataSourceCache.cs
- HtmlElementErrorEventArgs.cs
- WebPartConnectionCollection.cs
- CodeAssignStatement.cs
- EndOfStreamException.cs
- DoubleAnimation.cs
- ItemAutomationPeer.cs
- NativeMethods.cs
- ReferentialConstraint.cs
- ListenerServiceInstallComponent.cs
- RightsManagementEncryptionTransform.cs
- FlowNode.cs
- WpfWebRequestHelper.cs
- UserNamePasswordValidator.cs
- ChildChangedEventArgs.cs
- ValueUtilsSmi.cs
- XmlNamedNodeMap.cs
- FontDifferentiator.cs
- TextContainerChangedEventArgs.cs
- TransactionBridge.cs
- Encoding.cs
- ApplicationHost.cs
- PrimarySelectionGlyph.cs
- TabControlToolboxItem.cs
- WaveHeader.cs
- Triangle.cs
- SamlAssertion.cs
- LocalValueEnumerator.cs
- CompressEmulationStream.cs
- SHA512Managed.cs
- ZoneIdentityPermission.cs
- SizeConverter.cs
- DataSysAttribute.cs
- FactoryGenerator.cs
- ObjectDataSourceDisposingEventArgs.cs
- GacUtil.cs
- ProtocolViolationException.cs
- SqlCaseSimplifier.cs
- DesignerTransactionCloseEvent.cs
- ZoneMembershipCondition.cs
- ColorAnimation.cs
- IntSecurity.cs
- WorkflowInstanceContextProvider.cs
- DynamicObject.cs
- ExpandButtonVisibilityConverter.cs
- CategoryGridEntry.cs
- FlowPosition.cs
- SyndicationLink.cs
- PropertyRecord.cs
- Renderer.cs
- GraphicsPathIterator.cs
- Light.cs
- HtmlToClrEventProxy.cs
- WhiteSpaceTrimStringConverter.cs
- GraphicsContext.cs
- Icon.cs
- SpellCheck.cs
- UriSection.cs
- DataControlLinkButton.cs
- SimpleType.cs
- Events.cs
- DataGridViewTopLeftHeaderCell.cs
- Style.cs
- RepeatEnumerable.cs
- CollectionTypeElement.cs
- Rijndael.cs
- smtpconnection.cs
- OpacityConverter.cs
- DynamicRendererThreadManager.cs
- MemoryFailPoint.cs
- AmbiguousMatchException.cs
- MailAddressCollection.cs
- MouseEvent.cs