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
- ScrollItemPatternIdentifiers.cs
- BooleanProjectedSlot.cs
- SignatureHelper.cs
- BamlResourceDeserializer.cs
- WindowsListViewGroupSubsetLink.cs
- EntityDataSourceView.cs
- MsmqOutputChannel.cs
- BufferBuilder.cs
- CodeAttributeArgument.cs
- HtmlCalendarAdapter.cs
- LinkedList.cs
- CodePageUtils.cs
- ObjectViewEntityCollectionData.cs
- SourceFileBuildProvider.cs
- SourceItem.cs
- WorkflowViewManager.cs
- ProcessingInstructionAction.cs
- MarkupExtensionParser.cs
- mactripleDES.cs
- CaseInsensitiveHashCodeProvider.cs
- DmlSqlGenerator.cs
- SqlConnectionFactory.cs
- HtmlTableCellCollection.cs
- FontStretchConverter.cs
- Image.cs
- TokenBasedSetEnumerator.cs
- ParsedRoute.cs
- ReceiveActivity.cs
- BinaryUtilClasses.cs
- ExternalException.cs
- BodyGlyph.cs
- PropertyEmitter.cs
- WorkflowDurableInstance.cs
- DecodeHelper.cs
- SSmlParser.cs
- CodeFieldReferenceExpression.cs
- SqlColumnizer.cs
- PrePrepareMethodAttribute.cs
- Margins.cs
- ListViewGroup.cs
- BaseDataListComponentEditor.cs
- brushes.cs
- XPathExpr.cs
- ObjectDataSourceMethodEventArgs.cs
- ClientUrlResolverWrapper.cs
- NetworkInterface.cs
- HttpBindingExtension.cs
- Parameter.cs
- BridgeDataRecord.cs
- BackgroundWorker.cs
- DbDataRecord.cs
- TextTreePropertyUndoUnit.cs
- UrlPath.cs
- documentsequencetextview.cs
- Serializer.cs
- DesignerHost.cs
- PackWebRequestFactory.cs
- ProfileService.cs
- MemoryStream.cs
- Empty.cs
- ClonableStack.cs
- XmlSchemaImporter.cs
- InterleavedZipPartStream.cs
- WebHttpBinding.cs
- TTSVoice.cs
- StringBuilder.cs
- LoginView.cs
- AsyncDataRequest.cs
- ModuleBuilder.cs
- Root.cs
- _NTAuthentication.cs
- ToolbarAUtomationPeer.cs
- MessageAction.cs
- BamlTreeNode.cs
- ScriptServiceAttribute.cs
- MonthChangedEventArgs.cs
- GridSplitter.cs
- _CacheStreams.cs
- MissingFieldException.cs
- AssociatedControlConverter.cs
- ThemeDictionaryExtension.cs
- Property.cs
- URLIdentityPermission.cs
- ExpressionBinding.cs
- SpecularMaterial.cs
- X509ChainElement.cs
- LinqDataView.cs
- RawTextInputReport.cs
- NavigateEvent.cs
- PropertyTabChangedEvent.cs
- AssertUtility.cs
- RoutingConfiguration.cs
- CodeSnippetExpression.cs
- Int64KeyFrameCollection.cs
- SizeIndependentAnimationStorage.cs
- ForwardPositionQuery.cs
- JobPageOrder.cs
- StylusButtonCollection.cs
- StylusPointPropertyId.cs
- RuntimeConfigurationRecord.cs