Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IgnorePropertiesAttribute.cs
- ResourcesGenerator.cs
- GPRECTF.cs
- ValueUnavailableException.cs
- NodeInfo.cs
- AssemblyAttributes.cs
- DisableDpiAwarenessAttribute.cs
- Debug.cs
- XmlTextReaderImplHelpers.cs
- KeyConstraint.cs
- StorageMappingItemCollection.cs
- ActionFrame.cs
- PanelStyle.cs
- AsyncOperationManager.cs
- sqlstateclientmanager.cs
- PersonalizableAttribute.cs
- PropertyGridView.cs
- ISAPIApplicationHost.cs
- Token.cs
- Int64AnimationUsingKeyFrames.cs
- GeometryDrawing.cs
- EventPropertyMap.cs
- DefaultWorkflowSchedulerService.cs
- HostedElements.cs
- ValidateNames.cs
- XamlGridLengthSerializer.cs
- ProviderCollection.cs
- IPAddressCollection.cs
- ServiceCredentialsElement.cs
- wgx_commands.cs
- FloatMinMaxAggregationOperator.cs
- FlowDocumentView.cs
- UpdateTranslator.cs
- InheritanceAttribute.cs
- ByteKeyFrameCollection.cs
- DynamicDiscoSearcher.cs
- PropertyNames.cs
- XmlUTF8TextWriter.cs
- DirectionalLight.cs
- Misc.cs
- Matrix.cs
- ProcessModule.cs
- BinHexEncoding.cs
- SortKey.cs
- SafeTimerHandle.cs
- ConfigurationSectionHelper.cs
- MultipleViewProviderWrapper.cs
- Solver.cs
- sqlstateclientmanager.cs
- ZipIOLocalFileDataDescriptor.cs
- ValueTable.cs
- ToolboxComponentsCreatingEventArgs.cs
- StateMachineHelpers.cs
- ProjectionPathSegment.cs
- UserPreferenceChangingEventArgs.cs
- ContentOperations.cs
- PointAnimationBase.cs
- URLString.cs
- MemberAccessException.cs
- WrappedOptions.cs
- HtmlUtf8RawTextWriter.cs
- ArgumentNullException.cs
- FormatException.cs
- SimpleTypeResolver.cs
- DataBinding.cs
- SQLRoleProvider.cs
- ApplicationServicesHostFactory.cs
- DescendentsWalkerBase.cs
- dataobject.cs
- XmlILOptimizerVisitor.cs
- TextProperties.cs
- MimeFormatExtensions.cs
- ControlBindingsConverter.cs
- ToolStripDropDownItem.cs
- MethodCallTranslator.cs
- ChoiceConverter.cs
- GridViewCancelEditEventArgs.cs
- StoryFragments.cs
- FlowDecisionLabelFeature.cs
- UserNameSecurityTokenParameters.cs
- DataGridViewCheckBoxColumn.cs
- ScriptResourceInfo.cs
- TypeUsageBuilder.cs
- CacheOutputQuery.cs
- SqlCacheDependencyDatabaseCollection.cs
- HttpPostedFile.cs
- AsyncCompletedEventArgs.cs
- WebAdminConfigurationHelper.cs
- NativeMethodsCLR.cs
- TextFormatterHost.cs
- ResourceProviderFactory.cs
- WebPartConnection.cs
- PropertyChangingEventArgs.cs
- mediapermission.cs
- Latin1Encoding.cs
- IPGlobalProperties.cs
- ValidationRule.cs
- hresults.cs
- LinearGradientBrush.cs
- DocumentSequenceHighlightLayer.cs