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
- altserialization.cs
- Attributes.cs
- ByteRangeDownloader.cs
- XmlSchemaSimpleTypeRestriction.cs
- invalidudtexception.cs
- ReflectionServiceProvider.cs
- TreeNodeCollectionEditor.cs
- CodeTypeOfExpression.cs
- QueryCursorEventArgs.cs
- ValidationErrorEventArgs.cs
- RouteData.cs
- cookiecollection.cs
- IList.cs
- ListDictionaryInternal.cs
- ObjectSecurity.cs
- DeferredTextReference.cs
- SimpleBitVector32.cs
- DataTemplateKey.cs
- UnmanagedBitmapWrapper.cs
- TypeListConverter.cs
- TopClause.cs
- ScriptManager.cs
- OdbcUtils.cs
- ComponentChangingEvent.cs
- FixedSOMTableCell.cs
- Error.cs
- BamlLocalizationDictionary.cs
- CustomErrorsSection.cs
- SQLDoubleStorage.cs
- StateInitializationDesigner.cs
- RemoteTokenFactory.cs
- DecimalAnimation.cs
- CodeAssignStatement.cs
- SystemWebExtensionsSectionGroup.cs
- Tag.cs
- ExclusiveHandle.cs
- Translator.cs
- ScrollableControl.cs
- TextEditorCharacters.cs
- GPRECT.cs
- AdjustableArrowCap.cs
- SiteMapNode.cs
- DataGridViewButtonCell.cs
- TextTreeNode.cs
- XmlWriter.cs
- ConsoleTraceListener.cs
- ClassGenerator.cs
- Cell.cs
- ToolStripPanelRenderEventArgs.cs
- FormViewDeleteEventArgs.cs
- DesignerOptionService.cs
- DataGridViewCellCollection.cs
- _Rfc2616CacheValidators.cs
- FixedPosition.cs
- TextMarkerSource.cs
- ReliabilityContractAttribute.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SpecularMaterial.cs
- CurrencyWrapper.cs
- VersionedStreamOwner.cs
- TreeIterators.cs
- HwndHost.cs
- StateBag.cs
- DataGridToolTip.cs
- CompositeCollectionView.cs
- TimeoutException.cs
- XNodeValidator.cs
- ItemCollection.cs
- XmlSchemaAnnotation.cs
- ChameleonKey.cs
- SqlUserDefinedTypeAttribute.cs
- ModulesEntry.cs
- EntitySetDataBindingList.cs
- IndividualDeviceConfig.cs
- InvalidCardException.cs
- ZipIOLocalFileDataDescriptor.cs
- EndpointDiscoveryMetadataCD1.cs
- GeneralTransform.cs
- CodeAssignStatement.cs
- AttributeConverter.cs
- OpenFileDialog.cs
- SupportsEventValidationAttribute.cs
- _BaseOverlappedAsyncResult.cs
- OleDbMetaDataFactory.cs
- ColumnMap.cs
- RuntimeTransactionHandle.cs
- COAUTHIDENTITY.cs
- SqlTriggerAttribute.cs
- SystemIPv6InterfaceProperties.cs
- HttpRawResponse.cs
- GB18030Encoding.cs
- Win32PrintDialog.cs
- TemplateControl.cs
- ColorContextHelper.cs
- SocketException.cs
- ZipIOExtraField.cs
- PersonalizableAttribute.cs
- JsonEncodingStreamWrapper.cs
- ConfigXmlComment.cs
- XPathNodeIterator.cs