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
- IndexerReference.cs
- HttpContextWrapper.cs
- __Filters.cs
- XPathBuilder.cs
- FormViewUpdateEventArgs.cs
- DefaultValueTypeConverter.cs
- SystemResources.cs
- WmlListAdapter.cs
- OleAutBinder.cs
- HttpFileCollection.cs
- SystemResourceKey.cs
- StoragePropertyMapping.cs
- NativeMethods.cs
- Int32RectValueSerializer.cs
- DesignerActionKeyboardBehavior.cs
- Rights.cs
- CommandLineParser.cs
- ModelTreeEnumerator.cs
- RawStylusInputCustomData.cs
- LayoutEditorPart.cs
- SqlCacheDependencySection.cs
- PasswordDeriveBytes.cs
- TextEditorCharacters.cs
- EmptyReadOnlyDictionaryInternal.cs
- DiagnosticTrace.cs
- InplaceBitmapMetadataWriter.cs
- IERequestCache.cs
- DataGridViewLayoutData.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlTextEncoder.cs
- CreateSequence.cs
- DropShadowEffect.cs
- CannotUnloadAppDomainException.cs
- XmlCDATASection.cs
- RedistVersionInfo.cs
- InternalResources.cs
- XmlNodeChangedEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- Privilege.cs
- XsdDateTime.cs
- WrappedReader.cs
- ProxyGenerator.cs
- TcpClientSocketManager.cs
- ProfileSettingsCollection.cs
- FunctionImportMapping.cs
- WindowsAuthenticationModule.cs
- ElementNotEnabledException.cs
- NavigatingCancelEventArgs.cs
- ShaderEffect.cs
- SequentialActivityDesigner.cs
- SpeechSeg.cs
- CommandLibraryHelper.cs
- TableRowGroup.cs
- AnimationClock.cs
- FontSourceCollection.cs
- _NegoStream.cs
- CodeExpressionStatement.cs
- SimpleTextLine.cs
- Utils.cs
- SQLBoolean.cs
- TraceHandlerErrorFormatter.cs
- MarshalByValueComponent.cs
- SqlLiftWhereClauses.cs
- DbConnectionPoolCounters.cs
- QilStrConcat.cs
- ClientData.cs
- TextTreeUndo.cs
- IntSecurity.cs
- EnvironmentPermission.cs
- ConnectionPointCookie.cs
- DbDeleteCommandTree.cs
- dbenumerator.cs
- TraceRecord.cs
- ListCollectionView.cs
- TextDecoration.cs
- SingleKeyFrameCollection.cs
- BmpBitmapEncoder.cs
- ProxyManager.cs
- DesignerActionMethodItem.cs
- TiffBitmapEncoder.cs
- WizardForm.cs
- MsmqAppDomainProtocolHandler.cs
- RightsManagementEncryptionTransform.cs
- MarkedHighlightComponent.cs
- TextHidden.cs
- KeyConstraint.cs
- precedingquery.cs
- FloaterParaClient.cs
- FixedPageProcessor.cs
- MobileUserControlDesigner.cs
- RawStylusInput.cs
- _ProxyChain.cs
- IntegerCollectionEditor.cs
- RequestQueryParser.cs
- FileClassifier.cs
- ISAPIWorkerRequest.cs
- HashCodeCombiner.cs
- ValidationRuleCollection.cs
- QueryAccessibilityHelpEvent.cs
- UrlPath.cs