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
- Substitution.cs
- AttributeXamlType.cs
- ProfileSection.cs
- AdapterUtil.cs
- Grid.cs
- XmlnsDefinitionAttribute.cs
- AttachmentCollection.cs
- CodeObject.cs
- SurrogateEncoder.cs
- FlowDocumentReader.cs
- ProcessModuleCollection.cs
- RegexStringValidatorAttribute.cs
- BufferModesCollection.cs
- RepeatButton.cs
- ValueTypeIndexerReference.cs
- Pick.cs
- Panel.cs
- MDIClient.cs
- Config.cs
- StopStoryboard.cs
- DictationGrammar.cs
- TextRangeProviderWrapper.cs
- Propagator.JoinPropagator.cs
- DummyDataSource.cs
- SplashScreenNativeMethods.cs
- BitmapFrame.cs
- CodePrimitiveExpression.cs
- SoundPlayerAction.cs
- SQLConvert.cs
- RenderCapability.cs
- EncoderBestFitFallback.cs
- SymbolMethod.cs
- WindowsToolbar.cs
- SQLRoleProvider.cs
- LogicalExpr.cs
- wgx_exports.cs
- XmlSchemaValidationException.cs
- StylusDownEventArgs.cs
- DiscardableAttribute.cs
- IUnknownConstantAttribute.cs
- WindowsPrincipal.cs
- HttpApplicationFactory.cs
- AuthenticationSchemesHelper.cs
- EntityDataSourceDataSelection.cs
- XmlCDATASection.cs
- UmAlQuraCalendar.cs
- CustomAttribute.cs
- SourceLineInfo.cs
- SoapAttributeAttribute.cs
- PropertyExpression.cs
- SessionEndingCancelEventArgs.cs
- RectangleGeometry.cs
- FileLogRecord.cs
- Imaging.cs
- AnonymousIdentificationSection.cs
- webeventbuffer.cs
- OracleTransaction.cs
- CorruptingExceptionCommon.cs
- AttributeEmitter.cs
- AbstractSvcMapFileLoader.cs
- PeerNameResolver.cs
- GenericRootAutomationPeer.cs
- WindowsTab.cs
- QilXmlReader.cs
- ExecutionContext.cs
- WebServiceHostFactory.cs
- UTF7Encoding.cs
- CompressEmulationStream.cs
- SHA256Managed.cs
- PlanCompiler.cs
- CodeTypeReference.cs
- DataControlFieldCell.cs
- TdsParser.cs
- UIInitializationException.cs
- CallbackValidator.cs
- StructuredTypeEmitter.cs
- Parameter.cs
- ApplicationGesture.cs
- Utils.cs
- QueryStringParameter.cs
- AssemblyCollection.cs
- UdpSocketReceiveManager.cs
- CallContext.cs
- InvalidOleVariantTypeException.cs
- Atom10FormatterFactory.cs
- TypeInfo.cs
- WindowsContainer.cs
- ConfigPathUtility.cs
- ResourceDescriptionAttribute.cs
- HtmlImage.cs
- WebPartVerb.cs
- securitycriticaldata.cs
- DrawingImage.cs
- UIAgentAsyncParams.cs
- ConstructorExpr.cs
- CommonXSendMessage.cs
- COM2Properties.cs
- Perspective.cs
- WebSysDefaultValueAttribute.cs
- SchemaDeclBase.cs