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
- ReferentialConstraint.cs
- SqlMethods.cs
- TemplatedEditableDesignerRegion.cs
- PropertyIdentifier.cs
- ScriptingRoleServiceSection.cs
- BitmapInitialize.cs
- CharStorage.cs
- TypeInformation.cs
- StructuredProperty.cs
- ToolStripContainer.cs
- X509ServiceCertificateAuthenticationElement.cs
- BaseParaClient.cs
- SqlGatherProducedAliases.cs
- DiscoveryClientProtocol.cs
- backend.cs
- BitHelper.cs
- DefinitionUpdate.cs
- MessageDecoder.cs
- ConnectAlgorithms.cs
- SerializationInfoEnumerator.cs
- MsmqMessageSerializationFormat.cs
- RegexBoyerMoore.cs
- MouseGesture.cs
- SocketElement.cs
- HashCryptoHandle.cs
- PolyBezierSegment.cs
- Table.cs
- ExpressionVisitor.cs
- SignatureDescription.cs
- OpCellTreeNode.cs
- DesignerActionMethodItem.cs
- DataStorage.cs
- DefaultIfEmptyQueryOperator.cs
- ObjectConverter.cs
- HashCryptoHandle.cs
- SqlRowUpdatedEvent.cs
- ImageFormat.cs
- RepeatInfo.cs
- _SpnDictionary.cs
- EventLogger.cs
- ExecutionContext.cs
- WeakReferenceList.cs
- Process.cs
- ExpressionBuilder.cs
- TriggerCollection.cs
- DrawingContextWalker.cs
- FormViewInsertedEventArgs.cs
- CursorConverter.cs
- InvokeProviderWrapper.cs
- VersionedStreamOwner.cs
- CodeNamespaceCollection.cs
- OleServicesContext.cs
- InputLangChangeRequestEvent.cs
- BeginEvent.cs
- VirtualPathProvider.cs
- SignatureHelper.cs
- DiscoveryExceptionDictionary.cs
- ObjectPersistData.cs
- DataGridLinkButton.cs
- StartFileNameEditor.cs
- PropertyTab.cs
- CommonObjectSecurity.cs
- FileFormatException.cs
- Attributes.cs
- GridViewUpdatedEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- SspiHelper.cs
- InkCanvasInnerCanvas.cs
- _CommandStream.cs
- BamlResourceContent.cs
- DataGridViewHeaderCell.cs
- DNS.cs
- ZipIOExtraFieldPaddingElement.cs
- XsltException.cs
- TransformedBitmap.cs
- BaseEntityWrapper.cs
- StrongNamePublicKeyBlob.cs
- RadioButton.cs
- FragmentNavigationEventArgs.cs
- HtmlTable.cs
- XmlSchemaAnnotation.cs
- DbProviderFactories.cs
- XmlNamespaceManager.cs
- FixedDocumentSequencePaginator.cs
- DCSafeHandle.cs
- TagPrefixAttribute.cs
- XmlSchemas.cs
- UInt16.cs
- ViewSimplifier.cs
- SqlCacheDependencySection.cs
- SerialErrors.cs
- SQLBytesStorage.cs
- PresentationTraceSources.cs
- BamlRecordReader.cs
- ActivityBindForm.Designer.cs
- SamlAudienceRestrictionCondition.cs
- Font.cs
- AnalyzedTree.cs
- ObjectDataSource.cs
- IsolatedStorageFile.cs