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
- NameValuePair.cs
- AjaxFrameworkAssemblyAttribute.cs
- XmlUnspecifiedAttribute.cs
- RestHandlerFactory.cs
- InternalPermissions.cs
- FlowDocumentFormatter.cs
- InputScopeManager.cs
- ParameterBuilder.cs
- InfoCardBaseException.cs
- IncrementalHitTester.cs
- Point3DAnimationBase.cs
- Margins.cs
- _ListenerAsyncResult.cs
- AccessDataSource.cs
- SendDesigner.xaml.cs
- AdapterDictionary.cs
- OleDbWrapper.cs
- ReadWriteControlDesigner.cs
- GeometryHitTestParameters.cs
- CloseSequenceResponse.cs
- UMPAttributes.cs
- DropTarget.cs
- ArrangedElementCollection.cs
- RoleBoolean.cs
- FormatConvertedBitmap.cs
- CommunicationException.cs
- mediaeventargs.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- Converter.cs
- Int64AnimationBase.cs
- Vars.cs
- WorkflowMarkupSerializationException.cs
- StyleModeStack.cs
- ItemType.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XmlWrappingWriter.cs
- FormatterServicesNoSerializableCheck.cs
- Rotation3D.cs
- DllNotFoundException.cs
- MenuCommand.cs
- CodeGeneratorOptions.cs
- DataGridCommandEventArgs.cs
- TreeViewImageGenerator.cs
- DataObjectCopyingEventArgs.cs
- ClientSettingsStore.cs
- GridViewEditEventArgs.cs
- WindowCollection.cs
- ModelPerspective.cs
- Highlights.cs
- TypeToken.cs
- WmpBitmapDecoder.cs
- HybridDictionary.cs
- ReceiveMessageContent.cs
- Char.cs
- CqlLexerHelpers.cs
- SvcMapFileLoader.cs
- SslStreamSecurityBindingElement.cs
- CategoryAttribute.cs
- UnsafeNativeMethods.cs
- Scene3D.cs
- GetUserPreferenceRequest.cs
- CFStream.cs
- Vector3D.cs
- RemotingAttributes.cs
- ControlBuilder.cs
- ListBoxItemWrapperAutomationPeer.cs
- WsdlExporter.cs
- ImageResources.Designer.cs
- XmlSchemaSimpleType.cs
- Size3D.cs
- DebugView.cs
- PrtCap_Reader.cs
- TreeNodeCollection.cs
- XMLSchema.cs
- StringComparer.cs
- CommandLibraryHelper.cs
- EditorPartCollection.cs
- MergeFailedEvent.cs
- ThemeableAttribute.cs
- OleStrCAMarshaler.cs
- CallbackHandler.cs
- UserPreferenceChangedEventArgs.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- RecipientInfo.cs
- QuaternionConverter.cs
- SafeViewOfFileHandle.cs
- MessageDescription.cs
- DataPagerFieldCommandEventArgs.cs
- DataListItem.cs
- SiteMap.cs
- TreeNodeEventArgs.cs
- CacheVirtualItemsEvent.cs
- TreeWalkHelper.cs
- PeerContact.cs
- UTF32Encoding.cs
- ReadOnlyNameValueCollection.cs
- DataTemplate.cs
- InstancePersistenceEvent.cs
- ExcCanonicalXml.cs
- Exception.cs