Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ImmutableObjectAttribute.cs / 1305376 / 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)); } } } // 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
- BamlTreeMap.cs
- COM2ExtendedUITypeEditor.cs
- HttpCachePolicyElement.cs
- SimpleApplicationHost.cs
- TraceInternal.cs
- CaseInsensitiveOrdinalStringComparer.cs
- NodeLabelEditEvent.cs
- TypeExtensionConverter.cs
- SQLInt64Storage.cs
- XsdValidatingReader.cs
- OleServicesContext.cs
- HtmlInputCheckBox.cs
- HtmlTableCell.cs
- CodeRegionDirective.cs
- ObjectDataSourceMethodEventArgs.cs
- TreeView.cs
- WebPartAuthorizationEventArgs.cs
- Metafile.cs
- Int16KeyFrameCollection.cs
- AggregateNode.cs
- InnerItemCollectionView.cs
- Pointer.cs
- SoapFaultCodes.cs
- ClipboardData.cs
- XmlSchemaAnyAttribute.cs
- webproxy.cs
- AnyAllSearchOperator.cs
- WebBrowserUriTypeConverter.cs
- DocumentOutline.cs
- EntityClassGenerator.cs
- CompoundFileReference.cs
- JsonFormatGeneratorStatics.cs
- DefaultEventAttribute.cs
- DropShadowBitmapEffect.cs
- SymmetricKeyWrap.cs
- TemplateInstanceAttribute.cs
- SoapRpcMethodAttribute.cs
- ValidationHelper.cs
- SyndicationPerson.cs
- ByteArrayHelperWithString.cs
- ResponseStream.cs
- HttpCookie.cs
- VectorCollectionValueSerializer.cs
- TextStore.cs
- StdValidatorsAndConverters.cs
- TypeConverterHelper.cs
- RMPublishingDialog.cs
- ViewEvent.cs
- DataServiceExpressionVisitor.cs
- WrappedIUnknown.cs
- MatrixTransform.cs
- IPGlobalProperties.cs
- SqlNodeAnnotations.cs
- SeekStoryboard.cs
- MetadataUtil.cs
- FlowDocumentReader.cs
- SessionParameter.cs
- SrgsGrammar.cs
- GridEntryCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- IdentifierService.cs
- DbModificationClause.cs
- HealthMonitoringSectionHelper.cs
- DataGridViewImageCell.cs
- ECDiffieHellmanPublicKey.cs
- Transform3D.cs
- WebHttpBehavior.cs
- ScriptingProfileServiceSection.cs
- FrameworkRichTextComposition.cs
- X509SecurityTokenAuthenticator.cs
- DocumentPageTextView.cs
- TextCollapsingProperties.cs
- TimeSpan.cs
- Int16Animation.cs
- MutexSecurity.cs
- TextServicesCompartment.cs
- embossbitmapeffect.cs
- MobileErrorInfo.cs
- StsCommunicationException.cs
- DataBoundControlAdapter.cs
- SmtpClient.cs
- SEHException.cs
- TaskFileService.cs
- NetworkCredential.cs
- SessionState.cs
- CacheRequest.cs
- _FixedSizeReader.cs
- SQLBoolean.cs
- TextTreeTextNode.cs
- SqlNotificationEventArgs.cs
- SiteMapDataSourceView.cs
- ParagraphResult.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RootNamespaceAttribute.cs
- InitializingNewItemEventArgs.cs
- _SslState.cs
- ListViewUpdateEventArgs.cs
- LinearKeyFrames.cs
- MimeWriter.cs
- BitmapEffectGroup.cs