Code:
/ DotNET / DotNET / 8.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
- ProjectionPath.cs
- BitmapPalettes.cs
- HttpCachePolicyBase.cs
- ClientBuildManager.cs
- Int32CollectionConverter.cs
- Parser.cs
- MeasureData.cs
- LayoutUtils.cs
- DefaultTextStore.cs
- TypeSystemProvider.cs
- InkPresenter.cs
- LinqDataSourceContextEventArgs.cs
- HtmlTable.cs
- TemplateBamlRecordReader.cs
- PageCopyCount.cs
- SemanticKeyElement.cs
- RequestStatusBarUpdateEventArgs.cs
- RewritingProcessor.cs
- Config.cs
- TextParaClient.cs
- VBIdentifierTrimConverter.cs
- RootAction.cs
- ObjectNotFoundException.cs
- ScrollBar.cs
- ActivationArguments.cs
- TypeBrowser.xaml.cs
- MessageBodyMemberAttribute.cs
- DispatchWrapper.cs
- VisualStyleInformation.cs
- RangeBaseAutomationPeer.cs
- invalidudtexception.cs
- PrimitiveSchema.cs
- PeerTransportSecurityElement.cs
- StrokeNodeEnumerator.cs
- IdentityReference.cs
- EventKeyword.cs
- XmlSchemaAppInfo.cs
- IPPacketInformation.cs
- SqlCommandSet.cs
- SynchronizationContext.cs
- ResourceSet.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- CommonGetThemePartSize.cs
- BitmapEffectDrawing.cs
- TextCollapsingProperties.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TextFormattingConverter.cs
- FileSystemInfo.cs
- GridPattern.cs
- HotSpotCollectionEditor.cs
- StrokeNode.cs
- IdentityHolder.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XmlIncludeAttribute.cs
- OrderByQueryOptionExpression.cs
- Highlights.cs
- FloatAverageAggregationOperator.cs
- WebPartZoneCollection.cs
- FileNotFoundException.cs
- XPathDescendantIterator.cs
- DATA_BLOB.cs
- AmbientValueAttribute.cs
- SiteMapNodeItemEventArgs.cs
- FormClosedEvent.cs
- ListViewTableRow.cs
- ContainerParagraph.cs
- DataGridViewColumn.cs
- Underline.cs
- PolyBezierSegment.cs
- SuppressMessageAttribute.cs
- TreeViewItemAutomationPeer.cs
- SoapFault.cs
- SafeProcessHandle.cs
- NullExtension.cs
- PowerStatus.cs
- DisplayMemberTemplateSelector.cs
- DbMetaDataFactory.cs
- HtmlLink.cs
- HttpFileCollectionWrapper.cs
- MatrixUtil.cs
- WebEncodingValidatorAttribute.cs
- COM2ExtendedTypeConverter.cs
- MultiTrigger.cs
- X509ClientCertificateCredentialsElement.cs
- SingleObjectCollection.cs
- FixedSchema.cs
- CodeSubDirectory.cs
- LoadWorkflowByKeyAsyncResult.cs
- LambdaCompiler.Statements.cs
- MemberListBinding.cs
- Vector3D.cs
- BridgeDataReader.cs
- EditorOptionAttribute.cs
- TdsParserSessionPool.cs
- CodeBlockBuilder.cs
- DataSourceHelper.cs
- PrintDialogException.cs
- CodeSnippetStatement.cs
- MsmqOutputChannel.cs
- Int32.cs