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
- SiteMapDataSourceView.cs
- TreeViewDesigner.cs
- SetterBaseCollection.cs
- FontNamesConverter.cs
- MarkerProperties.cs
- AsyncCompletedEventArgs.cs
- IntegerValidator.cs
- TaskFileService.cs
- Quaternion.cs
- AtomServiceDocumentSerializer.cs
- StrokeSerializer.cs
- XXXInfos.cs
- Label.cs
- CommunicationObjectManager.cs
- ObjectPersistData.cs
- GenericTextProperties.cs
- StreamedFramingRequestChannel.cs
- CharEnumerator.cs
- ValidatorUtils.cs
- MsmqMessageProperty.cs
- ISessionStateStore.cs
- ExceptionUtil.cs
- ViewBox.cs
- PolygonHotSpot.cs
- ColumnMapTranslator.cs
- DataGridViewTextBoxEditingControl.cs
- AttributeExtensions.cs
- InternalConfigRoot.cs
- SmtpReplyReaderFactory.cs
- UnsafeNativeMethodsTablet.cs
- TagMapInfo.cs
- PageCache.cs
- RoleGroupCollectionEditor.cs
- Panel.cs
- MDIWindowDialog.cs
- ExeConfigurationFileMap.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ConstraintEnumerator.cs
- ObjectNavigationPropertyMapping.cs
- Part.cs
- AnnotationResourceCollection.cs
- OleCmdHelper.cs
- SqlUdtInfo.cs
- IdentityHolder.cs
- EntityDataSourceChangedEventArgs.cs
- QueryGeneratorBase.cs
- AxisAngleRotation3D.cs
- XPathPatternParser.cs
- SecurityTokenSpecification.cs
- ConfigXmlCDataSection.cs
- AliasedSlot.cs
- PolicyValidationException.cs
- RuntimeConfigLKG.cs
- WinFormsSecurity.cs
- Rfc2898DeriveBytes.cs
- ConfigXmlAttribute.cs
- ElementHostAutomationPeer.cs
- AmbientLight.cs
- PagedDataSource.cs
- IPEndPointCollection.cs
- XmlSchemas.cs
- LinkClickEvent.cs
- DoubleAnimationBase.cs
- SortDescription.cs
- SqlClientFactory.cs
- ApplyImportsAction.cs
- ToolStrip.cs
- FaultPropagationQuery.cs
- BaseConfigurationRecord.cs
- AxisAngleRotation3D.cs
- AsymmetricKeyExchangeFormatter.cs
- XmlQualifiedNameTest.cs
- DocumentViewer.cs
- HttpCookie.cs
- ColorTransform.cs
- BreakRecordTable.cs
- mansign.cs
- SerializerDescriptor.cs
- SystemWebCachingSectionGroup.cs
- DefaultTextStore.cs
- DiscoveryReference.cs
- RequiredFieldValidator.cs
- FontSizeConverter.cs
- ContentValidator.cs
- DetailsViewDeletedEventArgs.cs
- WebConvert.cs
- DataListItemCollection.cs
- MobileFormsAuthentication.cs
- RegisteredExpandoAttribute.cs
- DataTemplateSelector.cs
- MemoryResponseElement.cs
- OpenTypeLayoutCache.cs
- LocationSectionRecord.cs
- MenuAdapter.cs
- CallbackException.cs
- MailFileEditor.cs
- SchemaSetCompiler.cs
- SqlResolver.cs
- ContainerUtilities.cs
- DecimalAnimationUsingKeyFrames.cs