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
- AnchoredBlock.cs
- KeyInfo.cs
- FamilyTypeface.cs
- HandlerFactoryWrapper.cs
- XmlWriter.cs
- BigInt.cs
- UpdateCommand.cs
- WindowsSolidBrush.cs
- MouseButton.cs
- PointLight.cs
- XsdCachingReader.cs
- SmtpDigestAuthenticationModule.cs
- DocumentViewer.cs
- ScrollableControl.cs
- _WinHttpWebProxyDataBuilder.cs
- SqlProviderUtilities.cs
- DbTransaction.cs
- XmlDataSource.cs
- SizeFConverter.cs
- BrowserDefinition.cs
- newitemfactory.cs
- DrawListViewSubItemEventArgs.cs
- BigIntegerStorage.cs
- AsymmetricSignatureDeformatter.cs
- Empty.cs
- DbModificationClause.cs
- ServiceBuildProvider.cs
- DisplayNameAttribute.cs
- DecimalKeyFrameCollection.cs
- TargetException.cs
- XMLDiffLoader.cs
- GeneratedContractType.cs
- PagedDataSource.cs
- KnownTypeAttribute.cs
- TextFormatter.cs
- ProxySimple.cs
- ModulesEntry.cs
- CounterSetInstanceCounterDataSet.cs
- ServicePoint.cs
- MenuDesigner.cs
- SessionKeyExpiredException.cs
- StylusCaptureWithinProperty.cs
- ScrollPattern.cs
- GridItem.cs
- Scheduler.cs
- RecordManager.cs
- EnumMember.cs
- StreamingContext.cs
- GenericTextProperties.cs
- ChtmlFormAdapter.cs
- SelectionRangeConverter.cs
- XmlDownloadManager.cs
- PlainXmlSerializer.cs
- DesignerToolStripControlHost.cs
- XmlReflectionImporter.cs
- RuntimeHelpers.cs
- ItemCheckEvent.cs
- UrlMappingsModule.cs
- RTTrackingProfile.cs
- ExpressionVisitor.cs
- AutomationPatternInfo.cs
- BamlBinaryReader.cs
- InvocationExpression.cs
- NegationPusher.cs
- TraceLevelStore.cs
- EmbeddedMailObjectsCollection.cs
- ElapsedEventArgs.cs
- BrowserDefinition.cs
- IUnknownConstantAttribute.cs
- AxParameterData.cs
- CommandID.cs
- WrappedReader.cs
- WebAdminConfigurationHelper.cs
- InputProviderSite.cs
- CreateUserWizardDesigner.cs
- FragmentNavigationEventArgs.cs
- ActivityPreviewDesigner.cs
- GatewayIPAddressInformationCollection.cs
- SqlBinder.cs
- GorillaCodec.cs
- PeerObject.cs
- TemplateLookupAction.cs
- XmlEncodedRawTextWriter.cs
- SHA512Managed.cs
- VScrollBar.cs
- DescendantOverDescendantQuery.cs
- SchemaImporterExtensionElementCollection.cs
- CngUIPolicy.cs
- GridViewDesigner.cs
- Screen.cs
- PriorityQueue.cs
- IntegerValidatorAttribute.cs
- Sequence.cs
- ChildDocumentBlock.cs
- ViewManagerAttribute.cs
- StrokeIntersection.cs
- StandardTransformFactory.cs
- SchemeSettingElementCollection.cs
- ConvertBinder.cs
- TextSearch.cs