Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / ImmutableObjectAttribute.cs / 1 / ImmutableObjectAttribute.cs
namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// Specifies that a object has no sub properties that are editable. /// [AttributeUsage(AttributeTargets.All)] public sealed class ImmutableObjectAttribute : Attribute { ////// Specifies that a object has no sub properties that are editable. /// /// This is usually used in the properties window to determine if an expandable object /// should be rendered as read-only. /// public static readonly ImmutableObjectAttribute Yes = new ImmutableObjectAttribute(true); ////// Specifies that a object has at least one editable sub-property. /// /// This is usually used in the properties window to determine if an expandable object /// should be rendered as read-only. /// public static readonly ImmutableObjectAttribute No = new ImmutableObjectAttribute(false); ////// Defaults to ImmutableObjectAttribute.No /// public static readonly ImmutableObjectAttribute Default = No; private bool immutable = true; ////// Constructs an ImmutableObjectAttribute object. /// /// public ImmutableObjectAttribute(bool immutable) { this.immutable = immutable; } ////// public bool Immutable { get { return immutable; } } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } ImmutableObjectAttribute other = obj as ImmutableObjectAttribute; return other != null && other.Immutable == this.immutable; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AutomationEvent.cs
- GeneralTransformCollection.cs
- UrlMappingsModule.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- LocatorBase.cs
- ThemeInfoAttribute.cs
- DataListItemCollection.cs
- AnimatedTypeHelpers.cs
- ListMarkerLine.cs
- ValidationResults.cs
- CodeDOMUtility.cs
- ObjectQueryProvider.cs
- PriorityItem.cs
- HttpWriter.cs
- Transactions.cs
- OrderedDictionaryStateHelper.cs
- ClusterRegistryConfigurationProvider.cs
- DelimitedListTraceListener.cs
- CompareInfo.cs
- WindowHideOrCloseTracker.cs
- HtmlHead.cs
- VisualBrush.cs
- FileLoadException.cs
- ToolStripRenderEventArgs.cs
- InstanceData.cs
- CodePageEncoding.cs
- FocusWithinProperty.cs
- TableLayoutColumnStyleCollection.cs
- TdsValueSetter.cs
- WorkflowValidationFailedException.cs
- ToolStripOverflowButton.cs
- WebBrowserDocumentCompletedEventHandler.cs
- OleDbConnectionInternal.cs
- TcpWorkerProcess.cs
- Int16.cs
- ApplicationServiceHelper.cs
- PerformanceCounterNameAttribute.cs
- EntityUtil.cs
- RegexBoyerMoore.cs
- DbRetry.cs
- Point3DCollection.cs
- SponsorHelper.cs
- WebPartChrome.cs
- EntityDataSourceDataSelection.cs
- SystemTcpConnection.cs
- FontInfo.cs
- TrustSection.cs
- ControlValuePropertyAttribute.cs
- XsdDataContractExporter.cs
- X500Name.cs
- DomNameTable.cs
- CharacterMetrics.cs
- commandenforcer.cs
- MasterPageCodeDomTreeGenerator.cs
- ConnectionStringSettings.cs
- ToggleProviderWrapper.cs
- HttpRequest.cs
- serverconfig.cs
- SmiRecordBuffer.cs
- ObjectSecurity.cs
- DataAccessor.cs
- HtmlTitle.cs
- OleDbRowUpdatingEvent.cs
- ThreadExceptionDialog.cs
- DocumentPage.cs
- ReplyChannel.cs
- SmtpClient.cs
- ProfileEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- PropertyInfoSet.cs
- _DomainName.cs
- DbProviderSpecificTypePropertyAttribute.cs
- MediaTimeline.cs
- StructuredTypeInfo.cs
- DbCommandDefinition.cs
- ProxyHelper.cs
- ModelFactory.cs
- invalidudtexception.cs
- Clipboard.cs
- ResXResourceWriter.cs
- MetafileHeaderEmf.cs
- HandleExceptionArgs.cs
- ByteAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- ContainerFilterService.cs
- SQLDoubleStorage.cs
- SrgsRuleRef.cs
- AutomationPeer.cs
- UnsafeNativeMethods.cs
- DbProviderFactoriesConfigurationHandler.cs
- ApplicationSecurityInfo.cs
- TCPListener.cs
- FixedBufferAttribute.cs
- EmbeddedMailObject.cs
- NamespaceImport.cs
- SchemaAttDef.cs
- SizeConverter.cs
- DocumentSchemaValidator.cs
- ProfileGroupSettingsCollection.cs
- SqlConnectionFactory.cs