Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlCollation.cs
- SoapCodeExporter.cs
- RequestDescription.cs
- TypeResolver.cs
- EventsTab.cs
- UnicastIPAddressInformationCollection.cs
- ThreadAttributes.cs
- AsyncResult.cs
- CustomAttribute.cs
- NodeFunctions.cs
- StateItem.cs
- VersionConverter.cs
- DropShadowBitmapEffect.cs
- TableCell.cs
- IriParsingElement.cs
- ReachSerializerAsync.cs
- ValidationError.cs
- DateTimeParse.cs
- CharAnimationUsingKeyFrames.cs
- PlatformCulture.cs
- PageEventArgs.cs
- InstanceOwnerException.cs
- VectorAnimation.cs
- Timeline.cs
- XmlAnyAttributeAttribute.cs
- DetailsViewPageEventArgs.cs
- RoutedEvent.cs
- SecurityDescriptor.cs
- VisualBasicExpressionConverter.cs
- VisualBasicHelper.cs
- SystemSounds.cs
- XmlBinaryReader.cs
- HtmlTable.cs
- XmlUtf8RawTextWriter.cs
- ControlPropertyNameConverter.cs
- TypeHelper.cs
- XsdDuration.cs
- CodeAttributeDeclarationCollection.cs
- SmiContextFactory.cs
- DependencySource.cs
- VisualTarget.cs
- SiteMapHierarchicalDataSourceView.cs
- TimeBoundedCache.cs
- ConfigurationSettings.cs
- ProfileModule.cs
- RegexWorker.cs
- TableAdapterManagerNameHandler.cs
- DayRenderEvent.cs
- ProcessModelInfo.cs
- WebEventCodes.cs
- GrammarBuilderWildcard.cs
- SystemInfo.cs
- Dictionary.cs
- XmlSchemaObject.cs
- TemplateInstanceAttribute.cs
- UpdateException.cs
- SingleAnimationBase.cs
- LabelDesigner.cs
- NamedPipeTransportSecurityElement.cs
- ListViewUpdatedEventArgs.cs
- Variant.cs
- TextDecoration.cs
- Typeface.cs
- BitmapSourceSafeMILHandle.cs
- DataGridViewCellParsingEventArgs.cs
- CodeObjectCreateExpression.cs
- ObjectDataSourceFilteringEventArgs.cs
- Condition.cs
- WebPartMinimizeVerb.cs
- CodeTypeDeclarationCollection.cs
- PrivateFontCollection.cs
- FloaterParagraph.cs
- ContentValidator.cs
- FileLogRecordHeader.cs
- LambdaExpression.cs
- DesigntimeLicenseContextSerializer.cs
- XmlMtomReader.cs
- TextViewDesigner.cs
- Line.cs
- GridViewUpdatedEventArgs.cs
- HttpRequest.cs
- PolyLineSegmentFigureLogic.cs
- EditableTreeList.cs
- ObsoleteAttribute.cs
- LocationSectionRecord.cs
- RecordsAffectedEventArgs.cs
- cookieexception.cs
- SizeValueSerializer.cs
- DashStyle.cs
- TreeNodeBinding.cs
- IDQuery.cs
- CatalogZoneBase.cs
- Walker.cs
- cryptoapiTransform.cs
- ThreadExceptionEvent.cs
- Soap.cs
- JapaneseLunisolarCalendar.cs
- AnnotationHelper.cs
- RtfToXamlReader.cs
- IdentityValidationException.cs