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
- XXXInfos.cs
- ToolStripDropTargetManager.cs
- UdpDuplexChannel.cs
- ColorTranslator.cs
- MimeXmlReflector.cs
- RelatedView.cs
- ByteStack.cs
- ZoneLinkButton.cs
- SqlErrorCollection.cs
- EncryptedPackageFilter.cs
- OletxResourceManager.cs
- DBPropSet.cs
- Int32Collection.cs
- SpecialFolderEnumConverter.cs
- UncommonField.cs
- GraphicsPath.cs
- COM2ComponentEditor.cs
- DataTableMapping.cs
- CodeEntryPointMethod.cs
- FormDocumentDesigner.cs
- TrackingStringDictionary.cs
- XamlToRtfWriter.cs
- SegmentInfo.cs
- ActivityStateQuery.cs
- DataGridLinkButton.cs
- TakeQueryOptionExpression.cs
- XmlSchemaSimpleContentExtension.cs
- XmlWriter.cs
- XmlWrappingWriter.cs
- FileFormatException.cs
- ApplicationContext.cs
- CodeParameterDeclarationExpression.cs
- ControlPaint.cs
- Schema.cs
- ImageClickEventArgs.cs
- FeatureManager.cs
- TextContainer.cs
- ToggleButton.cs
- DeobfuscatingStream.cs
- MethodCallConverter.cs
- VirtualizedItemProviderWrapper.cs
- DragEventArgs.cs
- ChangesetResponse.cs
- sqlcontext.cs
- Aggregates.cs
- TypeExtension.cs
- ValueUnavailableException.cs
- NumberAction.cs
- AssemblyInfo.cs
- MethodExpr.cs
- ProcessManager.cs
- AppendHelper.cs
- UIPermission.cs
- ClrProviderManifest.cs
- SlipBehavior.cs
- SessionState.cs
- RequestCacheManager.cs
- EncryptedKeyIdentifierClause.cs
- Encoding.cs
- FillRuleValidation.cs
- LocalizedNameDescriptionPair.cs
- HttpContextBase.cs
- ImageInfo.cs
- XmlSchemaImporter.cs
- Executor.cs
- RTLAwareMessageBox.cs
- XmlSchemaDocumentation.cs
- PartialCachingAttribute.cs
- DataGridViewAccessibleObject.cs
- IpcServerChannel.cs
- SafeArrayRankMismatchException.cs
- PointAnimationBase.cs
- TextHidden.cs
- FormatConvertedBitmap.cs
- Unit.cs
- tooltip.cs
- AnnotationResourceCollection.cs
- HtmlForm.cs
- SmiRequestExecutor.cs
- TraceEventCache.cs
- TextHidden.cs
- SourceSwitch.cs
- ping.cs
- BitmapPalettes.cs
- StickyNoteHelper.cs
- TypeExtensionConverter.cs
- infer.cs
- AuthenticateEventArgs.cs
- WmpBitmapEncoder.cs
- EntityParameterCollection.cs
- TypeDescriptor.cs
- ToolBarOverflowPanel.cs
- dataprotectionpermissionattribute.cs
- HttpServerVarsCollection.cs
- Substitution.cs
- WebPartDisplayModeEventArgs.cs
- WindowsSecurityToken.cs
- EventLogPermissionEntry.cs
- ComponentResourceManager.cs
- CallbackWrapper.cs