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
- DataView.cs
- FigureParagraph.cs
- OrderingQueryOperator.cs
- _SpnDictionary.cs
- ObjectSecurity.cs
- FormsAuthenticationUserCollection.cs
- DataReceivedEventArgs.cs
- CredentialCache.cs
- CompilerWrapper.cs
- SHA512.cs
- ImmutableObjectAttribute.cs
- DataGridRowHeader.cs
- ToolStripSystemRenderer.cs
- InfoCardXmlSerializer.cs
- DocumentOrderComparer.cs
- EntityException.cs
- HttpValueCollection.cs
- IChannel.cs
- AsyncOperation.cs
- UIPermission.cs
- AutoScrollHelper.cs
- HwndSubclass.cs
- IxmlLineInfo.cs
- DataGridPagingPage.cs
- BaseDataBoundControl.cs
- GenericTypeParameterBuilder.cs
- XmlStreamStore.cs
- DetailsViewModeEventArgs.cs
- Switch.cs
- Int32CollectionConverter.cs
- FtpWebResponse.cs
- TextSelectionHighlightLayer.cs
- FixedHighlight.cs
- LinqDataSource.cs
- iisPickupDirectory.cs
- CompilerParameters.cs
- InfoCardAsymmetricCrypto.cs
- XmlCharCheckingReader.cs
- ListBindingConverter.cs
- SimpleRecyclingCache.cs
- ResXFileRef.cs
- Signature.cs
- RemotingException.cs
- HtmlElementErrorEventArgs.cs
- OrthographicCamera.cs
- DataGridItem.cs
- connectionpool.cs
- Rotation3DAnimationBase.cs
- NonSerializedAttribute.cs
- ModulesEntry.cs
- ArcSegment.cs
- FormClosingEvent.cs
- FrameDimension.cs
- DesignerMetadata.cs
- UnsafeNetInfoNativeMethods.cs
- InvalidFilterCriteriaException.cs
- FlowDocumentPageViewerAutomationPeer.cs
- PointLightBase.cs
- MethodToken.cs
- StandardOleMarshalObject.cs
- RoleService.cs
- ReferencedAssembly.cs
- XmlSignificantWhitespace.cs
- SmtpFailedRecipientException.cs
- IndentedTextWriter.cs
- MetadataCache.cs
- OrderByBuilder.cs
- AvTraceDetails.cs
- Authorization.cs
- HtmlMeta.cs
- DynamicActionMessageFilter.cs
- TextPointer.cs
- ClientSettingsStore.cs
- Container.cs
- QueryResponse.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SiteMap.cs
- EventLogPermissionEntryCollection.cs
- ManifestResourceInfo.cs
- _NetworkingPerfCounters.cs
- ToolStripLabel.cs
- InputReport.cs
- FindCriteria11.cs
- XmlSerializerAssemblyAttribute.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- SimpleFieldTemplateFactory.cs
- ConfigXmlText.cs
- TemplateParser.cs
- IriParsingElement.cs
- FontInfo.cs
- Connector.xaml.cs
- FrameworkElement.cs
- SerializationHelper.cs
- RowBinding.cs
- VariableQuery.cs
- XhtmlBasicLinkAdapter.cs
- UdpUtility.cs
- InheritanceContextHelper.cs
- ISAPIRuntime.cs
- DataGridViewSelectedCellsAccessibleObject.cs