Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- errorpatternmatcher.cs
- XmlMtomWriter.cs
- Error.cs
- base64Transforms.cs
- AdditionalEntityFunctions.cs
- CheckBoxField.cs
- RegexRunnerFactory.cs
- InputLangChangeEvent.cs
- EntityCollectionChangedParams.cs
- CmsInterop.cs
- Debug.cs
- Transform.cs
- FileChangeNotifier.cs
- Pts.cs
- X500Name.cs
- ExpanderAutomationPeer.cs
- KnownTypes.cs
- TypeLibConverter.cs
- OracleConnection.cs
- UserPreferenceChangedEventArgs.cs
- NativeMethodsCLR.cs
- MimeParameterWriter.cs
- XmlSchemaComplexContent.cs
- PlanCompiler.cs
- BitmapMetadata.cs
- ProxyWebPart.cs
- WindowsFormsLinkLabel.cs
- Hex.cs
- KeyConstraint.cs
- DataListItemEventArgs.cs
- JsonWriter.cs
- FilterQueryOptionExpression.cs
- DataTablePropertyDescriptor.cs
- WindowsListViewSubItem.cs
- TrustManager.cs
- RegistrationServices.cs
- LockCookie.cs
- MarginsConverter.cs
- QuaternionValueSerializer.cs
- WizardPanel.cs
- InternalControlCollection.cs
- XPathBuilder.cs
- MetabaseServerConfig.cs
- ArrayList.cs
- Blend.cs
- TabItemAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- HeaderCollection.cs
- AccessibilityApplicationManager.cs
- ScriptResourceHandler.cs
- DataGridViewTopRowAccessibleObject.cs
- WebPartConnectionCollection.cs
- HeaderCollection.cs
- CalendarBlackoutDatesCollection.cs
- DataServiceClientException.cs
- TreeNodeConverter.cs
- ThreadAbortException.cs
- LockedHandleGlyph.cs
- Effect.cs
- ImageMap.cs
- Exception.cs
- FileDialogCustomPlaces.cs
- DataTableMapping.cs
- ColorConvertedBitmap.cs
- WizardPanel.cs
- XmlCharCheckingReader.cs
- IntSecurity.cs
- AppearanceEditorPart.cs
- EdmComplexTypeAttribute.cs
- SoapTypeAttribute.cs
- future.cs
- AdCreatedEventArgs.cs
- ToolStripGrip.cs
- TriggerActionCollection.cs
- RuntimeConfig.cs
- SafeEventHandle.cs
- XmlDocumentType.cs
- WindowsContainer.cs
- OutOfProcStateClientManager.cs
- DeviceContext2.cs
- ExpressionBinding.cs
- _NativeSSPI.cs
- GcSettings.cs
- ConfigurationManagerInternal.cs
- DetailsViewInsertedEventArgs.cs
- objectresult_tresulttype.cs
- RelOps.cs
- WindowsGraphics2.cs
- PointAnimationUsingKeyFrames.cs
- JsonDataContract.cs
- BinaryObjectInfo.cs
- WeakReference.cs
- WebContext.cs
- DataRowChangeEvent.cs
- ObjectResult.cs
- MinimizableAttributeTypeConverter.cs
- CacheForPrimitiveTypes.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StylusPointProperties.cs
- CompModSwitches.cs