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
- SurrogateEncoder.cs
- StyleXamlTreeBuilder.cs
- QilReplaceVisitor.cs
- UnsettableComboBox.cs
- BinaryConverter.cs
- Attribute.cs
- XamlStyleSerializer.cs
- SQLDateTime.cs
- GeneralTransform3DCollection.cs
- ThumbButtonInfo.cs
- SamlSubject.cs
- CodeSnippetTypeMember.cs
- ResizeGrip.cs
- PropertyRecord.cs
- MessageBuffer.cs
- ListViewContainer.cs
- XmlParserContext.cs
- Sentence.cs
- SqlDependencyUtils.cs
- GPRECT.cs
- EntityDataSourceView.cs
- BaseValidator.cs
- Misc.cs
- RawStylusActions.cs
- ContextStaticAttribute.cs
- XamlTypeMapper.cs
- SingleTagSectionHandler.cs
- WebControlsSection.cs
- CalendarDateRange.cs
- OleDbConnectionInternal.cs
- MinimizableAttributeTypeConverter.cs
- SystemIPInterfaceStatistics.cs
- Point3DKeyFrameCollection.cs
- ProtocolsConfigurationEntry.cs
- Executor.cs
- Query.cs
- XMLSyntaxException.cs
- XmlWrappingReader.cs
- HyperLinkColumn.cs
- DynamicResourceExtension.cs
- SystemFonts.cs
- CustomValidator.cs
- OdbcConnection.cs
- InstalledFontCollection.cs
- ObjectNavigationPropertyMapping.cs
- WpfWebRequestHelper.cs
- LifetimeManager.cs
- SuppressIldasmAttribute.cs
- ObjectDataSourceChooseTypePanel.cs
- X509CertificateClaimSet.cs
- MessageEnumerator.cs
- EventLogPermissionHolder.cs
- RadialGradientBrush.cs
- GenericTransactionFlowAttribute.cs
- AxHostDesigner.cs
- ellipse.cs
- RenderCapability.cs
- ScaleTransform.cs
- KeyNotFoundException.cs
- TemplateBindingExpression.cs
- PermissionSetTriple.cs
- CancellationHandlerDesigner.cs
- _AutoWebProxyScriptHelper.cs
- CodePropertyReferenceExpression.cs
- VisualStateManager.cs
- DataPagerCommandEventArgs.cs
- MenuItemStyleCollectionEditor.cs
- WebHttpBehavior.cs
- BrowserDefinition.cs
- OneToOneMappingSerializer.cs
- AddInEnvironment.cs
- SqlGenericUtil.cs
- MarshalDirectiveException.cs
- SimpleLine.cs
- NaturalLanguageHyphenator.cs
- XPathDocumentIterator.cs
- Pen.cs
- EntityRecordInfo.cs
- SymLanguageType.cs
- IdentityManager.cs
- TextParagraphView.cs
- MobileCapabilities.cs
- WSTrustFeb2005.cs
- GZipDecoder.cs
- AttachmentCollection.cs
- GridItemPattern.cs
- WebFaultClientMessageInspector.cs
- StringFunctions.cs
- SecurityContext.cs
- X509Certificate.cs
- SyntaxCheck.cs
- XPathNodeIterator.cs
- UrlPath.cs
- Italic.cs
- CompoundFileReference.cs
- WebEvents.cs
- Random.cs
- PeerUnsafeNativeMethods.cs
- XmlIlGenerator.cs
- JsonFaultDetail.cs