Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SourceFilter.cs
- TemplateBindingExtensionConverter.cs
- PtsPage.cs
- Soap12ProtocolImporter.cs
- CommandManager.cs
- RotateTransform.cs
- EndpointInstanceProvider.cs
- SimpleHandlerFactory.cs
- OrderByQueryOptionExpression.cs
- SplitContainer.cs
- ToolstripProfessionalRenderer.cs
- DependentList.cs
- QueryCacheManager.cs
- ReflectionServiceProvider.cs
- GridViewSelectEventArgs.cs
- DataControlPagerLinkButton.cs
- ProfilePropertySettings.cs
- MetadataArtifactLoaderCompositeFile.cs
- InkCanvas.cs
- SetUserLanguageRequest.cs
- ExpressionBuilderCollection.cs
- XmlSchemaGroup.cs
- HtmlHistory.cs
- SmtpSection.cs
- SqlException.cs
- ScaleTransform3D.cs
- XamlSerializerUtil.cs
- CollectionType.cs
- InputEventArgs.cs
- TransformProviderWrapper.cs
- LineBreak.cs
- COM2PictureConverter.cs
- PolicyStatement.cs
- OdbcTransaction.cs
- Events.cs
- TagNameToTypeMapper.cs
- login.cs
- DockPattern.cs
- CalendarDateChangedEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- HandlerWithFactory.cs
- FacetValues.cs
- Timeline.cs
- WindowsServiceCredential.cs
- DataGridViewUtilities.cs
- UntypedNullExpression.cs
- PropertyMetadata.cs
- Parser.cs
- SortKey.cs
- PolyLineSegmentFigureLogic.cs
- CharacterMetricsDictionary.cs
- EventLogPermissionAttribute.cs
- XamlTypeMapper.cs
- ScrollViewerAutomationPeer.cs
- XmlEntity.cs
- OleDbError.cs
- CultureInfoConverter.cs
- SQLConvert.cs
- StackBuilderSink.cs
- ExceptionHandlers.cs
- GPPOINT.cs
- TextParaClient.cs
- Table.cs
- MetadataArtifactLoaderComposite.cs
- SendKeys.cs
- OneOfTypeConst.cs
- MemoryRecordBuffer.cs
- SystemDropShadowChrome.cs
- HttpPostedFile.cs
- TableProvider.cs
- UInt32.cs
- ChannelManager.cs
- AuthenticationService.cs
- HighlightVisual.cs
- ResourceDictionary.cs
- Triplet.cs
- DoubleAnimationUsingPath.cs
- EntityExpressionVisitor.cs
- ClipboardData.cs
- PersonalizablePropertyEntry.cs
- XmlSchemaImporter.cs
- RootAction.cs
- AssemblyUtil.cs
- MenuItemCollection.cs
- List.cs
- OleDbConnectionFactory.cs
- UnsafeNativeMethods.cs
- CuspData.cs
- DataGridViewHitTestInfo.cs
- Misc.cs
- SmiContext.cs
- JournalNavigationScope.cs
- VariableAction.cs
- DynamicField.cs
- LoginCancelEventArgs.cs
- CompModSwitches.cs
- RawStylusInputReport.cs
- DbModificationCommandTree.cs
- ColorDialog.cs
- _ContextAwareResult.cs