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
- CryptoHandle.cs
- ResourcesGenerator.cs
- OutOfProcStateClientManager.cs
- OrderedEnumerableRowCollection.cs
- CodeEventReferenceExpression.cs
- DataGridViewColumn.cs
- OdbcReferenceCollection.cs
- ServiceMetadataContractBehavior.cs
- recordstatefactory.cs
- HierarchicalDataBoundControl.cs
- CachedFontFamily.cs
- XmlBinaryReader.cs
- RemoteWebConfigurationHostServer.cs
- StateManager.cs
- UriExt.cs
- CngKeyBlobFormat.cs
- ReferentialConstraint.cs
- GeneralTransform3DGroup.cs
- Renderer.cs
- WebSysDisplayNameAttribute.cs
- FilteredAttributeCollection.cs
- SqlRetyper.cs
- WindowsListViewItemCheckBox.cs
- IISMapPath.cs
- _SslState.cs
- TiffBitmapDecoder.cs
- GridViewCancelEditEventArgs.cs
- SerialReceived.cs
- HotSpot.cs
- PlainXmlDeserializer.cs
- SerializationIncompleteException.cs
- SQLGuidStorage.cs
- Currency.cs
- FixedFlowMap.cs
- ClientConfigurationHost.cs
- Permission.cs
- DemultiplexingClientMessageFormatter.cs
- ModelPropertyCollectionImpl.cs
- DefaultBinder.cs
- WizardPanelChangingEventArgs.cs
- SubMenuStyleCollection.cs
- CounterSet.cs
- AttributeProviderAttribute.cs
- DataGridViewButtonCell.cs
- UICuesEvent.cs
- ColumnHeaderConverter.cs
- CodeTypeMember.cs
- XmlFormatWriterGenerator.cs
- MasterPageBuildProvider.cs
- ProfileManager.cs
- ListSurrogate.cs
- ShapingWorkspace.cs
- SoapEnumAttribute.cs
- DataSourceUtil.cs
- Transactions.cs
- CounterSampleCalculator.cs
- ArgumentElement.cs
- CodeMemberField.cs
- DocumentSequenceHighlightLayer.cs
- ClientSession.cs
- ValueTypeFixupInfo.cs
- panel.cs
- WindowHideOrCloseTracker.cs
- FullTextLine.cs
- TraceSection.cs
- Formatter.cs
- counter.cs
- ISO2022Encoding.cs
- RecognizedWordUnit.cs
- DiscoveryDefaults.cs
- ElementAtQueryOperator.cs
- BasicExpressionVisitor.cs
- ToolStripDesignerAvailabilityAttribute.cs
- FileDialogCustomPlaces.cs
- SamlAudienceRestrictionCondition.cs
- SrgsElementFactoryCompiler.cs
- GenericAuthenticationEventArgs.cs
- HashHelper.cs
- QueryOperationResponseOfT.cs
- StringBlob.cs
- StorageEntityTypeMapping.cs
- PointValueSerializer.cs
- XPathQilFactory.cs
- FrameworkTextComposition.cs
- IWorkflowDebuggerService.cs
- DrawingVisualDrawingContext.cs
- FacetValues.cs
- Slider.cs
- FixedSOMPageConstructor.cs
- ConnectionPoolManager.cs
- PathNode.cs
- StringArrayConverter.cs
- TextViewBase.cs
- SqlConnectionStringBuilder.cs
- TreeViewImageIndexConverter.cs
- TemplateAction.cs
- StorageEntitySetMapping.cs
- TabControlAutomationPeer.cs
- GuidelineSet.cs
- NamedObject.cs