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
- DecimalConverter.cs
- TypeGeneratedEventArgs.cs
- CodeConditionStatement.cs
- SHA384.cs
- ResourceReferenceExpressionConverter.cs
- XmlStreamNodeWriter.cs
- CharacterBuffer.cs
- HasActivatableWorkflowEvent.cs
- OpCellTreeNode.cs
- ResourceDescriptionAttribute.cs
- RequiredAttributeAttribute.cs
- StateMachineTimers.cs
- MatrixTransform3D.cs
- QilReference.cs
- CachedBitmap.cs
- ReflectionTypeLoadException.cs
- ClientBuildManager.cs
- LinqDataSource.cs
- DummyDataSource.cs
- HttpsHostedTransportConfiguration.cs
- OpCellTreeNode.cs
- ExceptionRoutedEventArgs.cs
- TrackBarRenderer.cs
- DBNull.cs
- XmlSchemaDatatype.cs
- SiteMapNode.cs
- StoryFragments.cs
- IdlingCommunicationPool.cs
- DataGridTextBox.cs
- DesignerCategoryAttribute.cs
- ExpressionParser.cs
- sortedlist.cs
- HostingEnvironmentWrapper.cs
- AnnotationService.cs
- HttpResponseHeader.cs
- UnaryExpressionHelper.cs
- PersistenceTypeAttribute.cs
- DiagnosticTrace.cs
- SmtpReplyReader.cs
- TransactionalPackage.cs
- XmlWrappingReader.cs
- ToolStripCollectionEditor.cs
- PreloadHost.cs
- Action.cs
- StyleBamlRecordReader.cs
- AutoSizeComboBox.cs
- AdapterUtil.cs
- HostedTcpTransportManager.cs
- BinaryEditor.cs
- Vector3DCollectionValueSerializer.cs
- RemotingHelper.cs
- NativeMethods.cs
- DataServiceHostFactory.cs
- Preprocessor.cs
- UserControl.cs
- SByteStorage.cs
- BatchWriter.cs
- ResourceReferenceExpressionConverter.cs
- MailMessage.cs
- StyleBamlRecordReader.cs
- SqlCharStream.cs
- TraceData.cs
- FloaterParaClient.cs
- MetafileHeader.cs
- MailBnfHelper.cs
- PopOutPanel.cs
- IndentedWriter.cs
- DummyDataSource.cs
- ObjectKeyFrameCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- precedingquery.cs
- EntityStoreSchemaGenerator.cs
- TextDecoration.cs
- XmlQueryStaticData.cs
- ExpandableObjectConverter.cs
- CmsInterop.cs
- SamlAudienceRestrictionCondition.cs
- KeyInterop.cs
- TTSEngineTypes.cs
- CustomAttributeBuilder.cs
- ExtensionDataObject.cs
- AssociationSetMetadata.cs
- BufferBuilder.cs
- PasswordDeriveBytes.cs
- ComplexObject.cs
- CompilerError.cs
- InkCollectionBehavior.cs
- ObjectNavigationPropertyMapping.cs
- RtfControlWordInfo.cs
- AddIn.cs
- RtfControlWordInfo.cs
- SqlUDTStorage.cs
- GrowingArray.cs
- TemplateParser.cs
- DesignerAutoFormat.cs
- RoleGroup.cs
- DataGridViewComboBoxEditingControl.cs
- SkinBuilder.cs
- AcceleratedTokenAuthenticator.cs
- WindowClosedEventArgs.cs