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
- MatrixValueSerializer.cs
- Events.cs
- Vector3D.cs
- OdbcConnectionString.cs
- ToolStripSeparator.cs
- LineSegment.cs
- IndexerHelper.cs
- StructuredType.cs
- WebConfigurationManager.cs
- TrackingStringDictionary.cs
- RtfNavigator.cs
- GifBitmapDecoder.cs
- ListGeneralPage.cs
- _Rfc2616CacheValidators.cs
- Mapping.cs
- SqlLiftWhereClauses.cs
- LocalizableResourceBuilder.cs
- RotateTransform3D.cs
- PackageProperties.cs
- IsolatedStoragePermission.cs
- UnsafeNativeMethods.cs
- WindowsListViewItemStartMenu.cs
- Utils.cs
- DataSourceConverter.cs
- ReflectionHelper.cs
- EntryPointNotFoundException.cs
- IList.cs
- DragEvent.cs
- OleDbRowUpdatedEvent.cs
- ImageField.cs
- Point3D.cs
- GZipStream.cs
- CheckBoxRenderer.cs
- UpdatePanelControlTrigger.cs
- XmlConvert.cs
- SimpleWorkerRequest.cs
- CursorConverter.cs
- WebPartConnectionsDisconnectVerb.cs
- SafeWaitHandle.cs
- ColumnBinding.cs
- BooleanSwitch.cs
- DataGridViewLayoutData.cs
- BitmapScalingModeValidation.cs
- MenuRenderer.cs
- CaseInsensitiveOrdinalStringComparer.cs
- HttpListenerContext.cs
- ConnectionManager.cs
- UniqueEventHelper.cs
- LicenseProviderAttribute.cs
- RegexRunnerFactory.cs
- Char.cs
- DeflateEmulationStream.cs
- AttributeAction.cs
- SAPICategories.cs
- SafeRightsManagementHandle.cs
- DictionarySurrogate.cs
- XmlSchemaProviderAttribute.cs
- ReachDocumentReferenceSerializer.cs
- DataGridViewComboBoxColumn.cs
- PageContent.cs
- ResXDataNode.cs
- DataRowChangeEvent.cs
- MemberAssignmentAnalysis.cs
- ThemeableAttribute.cs
- IisTraceWebEventProvider.cs
- ManagedIStream.cs
- ConditionCollection.cs
- AttachmentCollection.cs
- StrokeCollectionConverter.cs
- DesignerSerializationManager.cs
- ButtonBase.cs
- PartialTrustVisibleAssembly.cs
- SqlNamer.cs
- LocalsItemDescription.cs
- XhtmlConformanceSection.cs
- ColorAnimationBase.cs
- MouseEvent.cs
- Geometry.cs
- DependencyPropertyDescriptor.cs
- SymDocumentType.cs
- GridViewCellAutomationPeer.cs
- TextWriter.cs
- GeometryGroup.cs
- InputManager.cs
- TextBoxBase.cs
- ServiceDescriptionContext.cs
- ReversePositionQuery.cs
- FacetValues.cs
- UnmanagedMemoryAccessor.cs
- DoWhile.cs
- StorageModelBuildProvider.cs
- ExtensionDataObject.cs
- RenderContext.cs
- MetafileHeaderWmf.cs
- DataBoundControl.cs
- MatchAttribute.cs
- MultipleFilterMatchesException.cs
- XmlnsCache.cs
- BinaryNode.cs
- StrokeCollection.cs