Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControlPersistable.cs / 1305376 / 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
- _LazyAsyncResult.cs
- SelectorItemAutomationPeer.cs
- CryptoApi.cs
- NativeCppClassAttribute.cs
- MatrixUtil.cs
- LogEntrySerializer.cs
- NativeDirectoryServicesQueryAPIs.cs
- FontSource.cs
- SetIterators.cs
- SimplePropertyEntry.cs
- TextCollapsingProperties.cs
- WindowsRichEdit.cs
- Constraint.cs
- EntityContainerEntitySet.cs
- serverconfig.cs
- SpellerInterop.cs
- DragDeltaEventArgs.cs
- CustomValidator.cs
- OrderByExpression.cs
- IncrementalHitTester.cs
- ClientSideQueueItem.cs
- ScrollData.cs
- DataGridBeginningEditEventArgs.cs
- XpsFont.cs
- GridSplitter.cs
- UndoUnit.cs
- IndentedTextWriter.cs
- TokenBasedSetEnumerator.cs
- Block.cs
- DocumentAutomationPeer.cs
- _LoggingObject.cs
- InfoCardServiceInstallComponent.cs
- DynamicRouteExpression.cs
- BamlRecordWriter.cs
- SafePEFileHandle.cs
- FixedPageAutomationPeer.cs
- HttpDebugHandler.cs
- EntityStoreSchemaFilterEntry.cs
- LoginAutoFormat.cs
- _AutoWebProxyScriptEngine.cs
- Transform3DCollection.cs
- ProcessThread.cs
- ConfigurationElementProperty.cs
- EmptyCollection.cs
- Variant.cs
- DataColumnCollection.cs
- MessageEncodingBindingElementImporter.cs
- ToolStripPanelSelectionGlyph.cs
- XXXOnTypeBuilderInstantiation.cs
- JumpItem.cs
- CalendarDateChangedEventArgs.cs
- ListViewItemEventArgs.cs
- LocalizationParserHooks.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HtmlCalendarAdapter.cs
- OdbcUtils.cs
- WebZone.cs
- UpdateTranslator.cs
- GeneralTransformGroup.cs
- PackageDigitalSignatureManager.cs
- EtwTrace.cs
- AppDomainManager.cs
- DbDataRecord.cs
- ConfigXmlWhitespace.cs
- BuildResult.cs
- TransformerInfoCollection.cs
- DocumentViewerConstants.cs
- ApplicationServicesHostFactory.cs
- XmlElementAttribute.cs
- ActiveDocumentEvent.cs
- AttributeAction.cs
- CodeExporter.cs
- AnonymousIdentificationSection.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- MouseEventArgs.cs
- TrackingDataItem.cs
- LabelDesigner.cs
- FontDriver.cs
- ObjectConverter.cs
- SQLDecimalStorage.cs
- IInstanceContextProvider.cs
- LineServices.cs
- MetadataItemSerializer.cs
- HybridWebProxyFinder.cs
- ExpressionBindingCollection.cs
- Stack.cs
- SHA512Managed.cs
- TextRange.cs
- FunctionDefinition.cs
- BuildProviderAppliesToAttribute.cs
- UserControlAutomationPeer.cs
- SplitterCancelEvent.cs
- DataRelationPropertyDescriptor.cs
- BindableAttribute.cs
- RegexRunner.cs
- __Filters.cs
- WindowsStatic.cs
- TypeUtils.cs
- QilVisitor.cs
- OdbcConnectionPoolProviderInfo.cs