Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DynamicRenderer.cs
- ObjectPersistData.cs
- ButtonDesigner.cs
- FormDesigner.cs
- XmlNodeReader.cs
- TemplateParser.cs
- WebPartCollection.cs
- UnsafeNetInfoNativeMethods.cs
- SimpleWorkerRequest.cs
- PathGeometry.cs
- PropertyEmitter.cs
- ConfigurationManager.cs
- CurrencyWrapper.cs
- RestClientProxyHandler.cs
- ping.cs
- EventLogRecord.cs
- FormClosingEvent.cs
- SrgsGrammar.cs
- HttpBufferlessInputStream.cs
- Delegate.cs
- LocatorGroup.cs
- SqlDataSourceFilteringEventArgs.cs
- BuildDependencySet.cs
- EditorZone.cs
- CommonDialog.cs
- SoapIncludeAttribute.cs
- Events.cs
- SoapInteropTypes.cs
- SystemWebCachingSectionGroup.cs
- SqlParameterizer.cs
- BitmapData.cs
- PropertiesTab.cs
- Emitter.cs
- MetadataItemCollectionFactory.cs
- PropertyConverter.cs
- XmlDataDocument.cs
- ItemContainerGenerator.cs
- PrimitiveXmlSerializers.cs
- _HeaderInfo.cs
- Menu.cs
- ProfileService.cs
- QueryOpcode.cs
- AuthenticationException.cs
- FixUpCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- JoinCqlBlock.cs
- XmlParser.cs
- CompressedStack.cs
- FunctionNode.cs
- ToolStripDropDownClosingEventArgs.cs
- StatusBarPanelClickEvent.cs
- LocalFileSettingsProvider.cs
- RegexWorker.cs
- BufferModeSettings.cs
- DataKeyArray.cs
- ToolBarDesigner.cs
- DataGridViewCellValidatingEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- TableSectionStyle.cs
- BatchParser.cs
- DeclarativeCatalogPart.cs
- PropertyMap.cs
- NavigatingCancelEventArgs.cs
- Wildcard.cs
- ChtmlImageAdapter.cs
- ObfuscateAssemblyAttribute.cs
- ConnectionInterfaceCollection.cs
- exports.cs
- SoapAttributeAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- RegexCompilationInfo.cs
- HierarchicalDataBoundControl.cs
- Point3DCollectionValueSerializer.cs
- ToolboxDataAttribute.cs
- SystemInformation.cs
- InternalSafeNativeMethods.cs
- WebPartCancelEventArgs.cs
- OneOfTypeConst.cs
- ColorConvertedBitmap.cs
- MediaPlayerState.cs
- InvalidProgramException.cs
- OdbcConnectionPoolProviderInfo.cs
- ApplyTemplatesAction.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- EntityCommandCompilationException.cs
- StylusPointPropertyInfoDefaults.cs
- SchemaObjectWriter.cs
- MethodBuilderInstantiation.cs
- HistoryEventArgs.cs
- WSUtilitySpecificationVersion.cs
- IntPtr.cs
- JsonXmlDataContract.cs
- TransactionScope.cs
- CommandBinding.cs
- DoubleAnimationBase.cs
- SortKey.cs
- MouseDevice.cs
- AddInServer.cs
- InertiaTranslationBehavior.cs
- ProfileManager.cs