Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SqlRemoveConstantOrderBy.cs
- TableLayoutColumnStyleCollection.cs
- TrackingDataItem.cs
- PersonalizableAttribute.cs
- QuadraticBezierSegment.cs
- HttpValueCollection.cs
- SqlDataSourceCache.cs
- WizardStepCollectionEditor.cs
- DataMemberFieldConverter.cs
- DataGridViewColumnEventArgs.cs
- UnsafeNativeMethods.cs
- RadioButtonStandardAdapter.cs
- SimpleRecyclingCache.cs
- WindowsIPAddress.cs
- ExpanderAutomationPeer.cs
- DataGridViewAccessibleObject.cs
- DynamicRendererThreadManager.cs
- HttpRequestTraceRecord.cs
- SlipBehavior.cs
- XmlSchemaSequence.cs
- listitem.cs
- EventSourceCreationData.cs
- Frame.cs
- TableChangeProcessor.cs
- MDIWindowDialog.cs
- ConfigXmlWhitespace.cs
- ImpersonationContext.cs
- SqlTypesSchemaImporter.cs
- XamlSerializationHelper.cs
- XmlToDatasetMap.cs
- AppDomainFactory.cs
- TreeViewItem.cs
- Types.cs
- RowVisual.cs
- MergeFailedEvent.cs
- QueueException.cs
- GradientSpreadMethodValidation.cs
- IndentTextWriter.cs
- XmlDataDocument.cs
- QilCloneVisitor.cs
- isolationinterop.cs
- DateTimeConstantAttribute.cs
- ServicePointManager.cs
- AnnotationResourceChangedEventArgs.cs
- WebConfigurationHost.cs
- GenericRootAutomationPeer.cs
- HttpRawResponse.cs
- DesignTimeData.cs
- FileUtil.cs
- DataKeyCollection.cs
- SqlDataSourceCommandEventArgs.cs
- ResourceReferenceExpression.cs
- OperatingSystemVersionCheck.cs
- PropertyGrid.cs
- Calendar.cs
- RawStylusSystemGestureInputReport.cs
- GradientStopCollection.cs
- DashStyle.cs
- ListViewItemMouseHoverEvent.cs
- ThrowHelper.cs
- DataListDesigner.cs
- SQLDateTimeStorage.cs
- BeginEvent.cs
- RTLAwareMessageBox.cs
- EmbossBitmapEffect.cs
- ProcessHostConfigUtils.cs
- SHA256Managed.cs
- ListItemViewControl.cs
- MatrixTransform.cs
- XmlNamespaceDeclarationsAttribute.cs
- LayoutManager.cs
- XmlPreloadedResolver.cs
- ToolStripArrowRenderEventArgs.cs
- RangeContentEnumerator.cs
- FolderBrowserDialogDesigner.cs
- ConfigXmlComment.cs
- SamlAssertion.cs
- EmptyCollection.cs
- XslException.cs
- ConfigXmlElement.cs
- RC2.cs
- PreviewControlDesigner.cs
- ToolStripSeparatorRenderEventArgs.cs
- XmlReader.cs
- XmlComplianceUtil.cs
- ReadOnlyCollection.cs
- SynchronousReceiveElement.cs
- ExceptionUtil.cs
- ISAPIRuntime.cs
- XmlSchemas.cs
- EncoderReplacementFallback.cs
- UpdatePanelTrigger.cs
- GridViewSelectEventArgs.cs
- CodeAttributeArgumentCollection.cs
- Style.cs
- XmlIlVisitor.cs
- String.cs
- SizeAnimationClockResource.cs
- GridViewHeaderRowPresenter.cs
- ContentTypeSettingClientMessageFormatter.cs