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
- CanonicalizationDriver.cs
- Rect.cs
- StrokeRenderer.cs
- GridViewDeletedEventArgs.cs
- Comparer.cs
- FontSourceCollection.cs
- XmlReaderSettings.cs
- XmlIncludeAttribute.cs
- Point3DValueSerializer.cs
- CharacterMetricsDictionary.cs
- BookmarkUndoUnit.cs
- ContentPathSegment.cs
- InvalidWorkflowException.cs
- ElementHost.cs
- TypeExtensions.cs
- GridView.cs
- SqlBooleanMismatchVisitor.cs
- RegexCompilationInfo.cs
- SqlMetaData.cs
- FrameworkElementFactoryMarkupObject.cs
- OperationResponse.cs
- SectionInformation.cs
- validation.cs
- DifferencingCollection.cs
- ContainerControl.cs
- PropertyMappingExceptionEventArgs.cs
- TextEditor.cs
- ContractDescription.cs
- DateTimeSerializationSection.cs
- AssemblyInfo.cs
- configsystem.cs
- KnownTypesProvider.cs
- LastQueryOperator.cs
- SizeLimitedCache.cs
- DataGridViewLinkColumn.cs
- _NegoState.cs
- FontStretchConverter.cs
- EncoderNLS.cs
- SoapHeaderException.cs
- ImageMap.cs
- MappingModelBuildProvider.cs
- Environment.cs
- XmlSerializer.cs
- StylusPlugin.cs
- ActivityAction.cs
- OverlappedAsyncResult.cs
- PathStreamGeometryContext.cs
- Zone.cs
- Lease.cs
- CommentEmitter.cs
- D3DImage.cs
- QilLoop.cs
- GacUtil.cs
- NameObjectCollectionBase.cs
- BufferCache.cs
- UiaCoreTypesApi.cs
- HyperlinkAutomationPeer.cs
- WebPartTransformerAttribute.cs
- HttpServerVarsCollection.cs
- TransformGroup.cs
- EndpointReference.cs
- DbProviderFactory.cs
- HttpWebResponse.cs
- Collection.cs
- DelegatingConfigHost.cs
- CodeAttributeArgument.cs
- Font.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SoapSchemaImporter.cs
- TextChange.cs
- Page.cs
- UITypeEditor.cs
- SplineKeyFrames.cs
- CurrentChangingEventManager.cs
- ContentElementAutomationPeer.cs
- ZipPackage.cs
- IdentityHolder.cs
- EntityUtil.cs
- EditCommandColumn.cs
- TextMetrics.cs
- BasicCommandTreeVisitor.cs
- ObjectItemLoadingSessionData.cs
- WindowsRegion.cs
- ValidationSummary.cs
- VisualTarget.cs
- OperationCanceledException.cs
- CustomPopupPlacement.cs
- MimeTypeMapper.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- ProjectionCamera.cs
- InkPresenter.cs
- Environment.cs
- HttpModuleAction.cs
- UnmanagedMemoryStream.cs
- IERequestCache.cs
- HwndProxyElementProvider.cs
- PropertyMetadata.cs
- AsmxEndpointPickerExtension.cs
- NotConverter.cs
- PropagatorResult.cs