Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ToolStripRendererSwitcher.cs
- DeferredRunTextReference.cs
- XmlILStorageConverter.cs
- BuildProviderInstallComponent.cs
- TextEditorCopyPaste.cs
- BindingContext.cs
- SpAudioStreamWrapper.cs
- HttpFileCollection.cs
- EncodingNLS.cs
- Context.cs
- MailMessage.cs
- Control.cs
- GetRecipientRequest.cs
- InternalCache.cs
- DataGridViewTopLeftHeaderCell.cs
- HTTPAPI_VERSION.cs
- KnownAssembliesSet.cs
- ExpressionVisitor.cs
- ProfileEventArgs.cs
- ConfigXmlText.cs
- ListBox.cs
- UIntPtr.cs
- PtsHelper.cs
- CustomLineCap.cs
- AnnotationComponentManager.cs
- IISUnsafeMethods.cs
- LinearQuaternionKeyFrame.cs
- StatusBarDesigner.cs
- BehaviorEditorPart.cs
- ToolboxComponentsCreatedEventArgs.cs
- SapiInterop.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- WebPartDisplayModeCancelEventArgs.cs
- DecimalAnimation.cs
- WorkflowApplicationAbortedException.cs
- XslVisitor.cs
- __Error.cs
- Label.cs
- KeyValuePairs.cs
- Int64Converter.cs
- DateTimeOffset.cs
- SystemEvents.cs
- SmiConnection.cs
- RequestTimeoutManager.cs
- InputManager.cs
- Win32KeyboardDevice.cs
- ClientConfigurationHost.cs
- WebZoneDesigner.cs
- ExceptionUtil.cs
- PersistencePipeline.cs
- ObsoleteAttribute.cs
- CompilerWrapper.cs
- Stack.cs
- securitymgrsite.cs
- WebPartDisplayMode.cs
- EntitySetBaseCollection.cs
- OptimalBreakSession.cs
- NamespaceQuery.cs
- SecurityPermission.cs
- FileSystemInfo.cs
- GenericArgumentsUpdater.cs
- EventDescriptor.cs
- CultureInfoConverter.cs
- Highlights.cs
- ReadOnlyMetadataCollection.cs
- ResourceDictionary.cs
- ScrollViewer.cs
- PathFigureCollection.cs
- Point3DCollectionConverter.cs
- LinearGradientBrush.cs
- PropertyFilterAttribute.cs
- DrawingCollection.cs
- ConfigurationElementProperty.cs
- InstanceStore.cs
- SchemaImporter.cs
- X509Certificate2Collection.cs
- HttpListenerException.cs
- CustomDictionarySources.cs
- BitmapEditor.cs
- UserMapPath.cs
- HighlightComponent.cs
- Scalars.cs
- MailBnfHelper.cs
- WebServiceHandlerFactory.cs
- ToolStripItem.cs
- EntityDataSourceMemberPath.cs
- ContextBase.cs
- sqlstateclientmanager.cs
- ListViewInsertionMark.cs
- ConditionalAttribute.cs
- WriteFileContext.cs
- ConstraintCollection.cs
- BaseHashHelper.cs
- StringExpressionSet.cs
- Transform.cs
- PropertyDescriptorGridEntry.cs
- EventLogEntryCollection.cs
- IndentTextWriter.cs
- CheckableControlBaseAdapter.cs
- EditingCoordinator.cs