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
- InputBinder.cs
- StateMachine.cs
- RuleSettings.cs
- XmlDeclaration.cs
- ContentOperations.cs
- WindowsSolidBrush.cs
- CornerRadiusConverter.cs
- ProxyElement.cs
- StringArrayConverter.cs
- LayoutEngine.cs
- OleDbDataReader.cs
- CompositeActivityDesigner.cs
- BackgroundWorker.cs
- MediaElement.cs
- DataGridViewCellConverter.cs
- DataContractSerializer.cs
- BamlLocalizableResourceKey.cs
- SystemMulticastIPAddressInformation.cs
- PropertyInfoSet.cs
- RegexCompiler.cs
- HitTestDrawingContextWalker.cs
- ClonableStack.cs
- Int32CollectionConverter.cs
- PropertiesTab.cs
- SqlSelectStatement.cs
- GACIdentityPermission.cs
- ElapsedEventArgs.cs
- MetaTableHelper.cs
- ViewRendering.cs
- GeneralTransformGroup.cs
- WindowsListView.cs
- ProcessModuleCollection.cs
- CurrentChangedEventManager.cs
- CryptoConfig.cs
- MetadataFile.cs
- WmlObjectListAdapter.cs
- GeometryHitTestParameters.cs
- DataGridViewCellEventArgs.cs
- MetadataPropertyvalue.cs
- DataGridTableCollection.cs
- BaseCodeDomTreeGenerator.cs
- WindowsListViewGroupHelper.cs
- IPEndPoint.cs
- StickyNoteAnnotations.cs
- Helpers.cs
- TypeUtil.cs
- SqlXml.cs
- httpserverutility.cs
- ValidatorUtils.cs
- AttachedProperty.cs
- SpeechSynthesizer.cs
- Roles.cs
- ColumnResult.cs
- PermissionListSet.cs
- SqlCacheDependency.cs
- ThicknessKeyFrameCollection.cs
- cache.cs
- DocumentXmlWriter.cs
- CodeStatement.cs
- SqlRemoveConstantOrderBy.cs
- TaiwanLunisolarCalendar.cs
- Int64Animation.cs
- CallId.cs
- CaseInsensitiveHashCodeProvider.cs
- Msec.cs
- MobileListItem.cs
- CodeCatchClause.cs
- SafeReadContext.cs
- AdPostCacheSubstitution.cs
- BinaryUtilClasses.cs
- IDQuery.cs
- GridViewHeaderRowPresenter.cs
- SqlDataRecord.cs
- PreservationFileWriter.cs
- DetailsViewDeletedEventArgs.cs
- Compress.cs
- TaskFileService.cs
- AsynchronousChannelMergeEnumerator.cs
- TemplateApplicationHelper.cs
- ClipboardData.cs
- EntityDataSourceSelectedEventArgs.cs
- TextServicesDisplayAttributePropertyRanges.cs
- X509Certificate.cs
- DecoderFallbackWithFailureFlag.cs
- ObjectContext.cs
- _OSSOCK.cs
- TabRenderer.cs
- CustomErrorsSection.cs
- ISAPIApplicationHost.cs
- FormClosingEvent.cs
- TcpChannelHelper.cs
- DataGridViewColumn.cs
- dtdvalidator.cs
- DataViewSetting.cs
- ColumnMapVisitor.cs
- Transactions.cs
- DPCustomTypeDescriptor.cs
- CompModSwitches.cs
- Icon.cs
- Evidence.cs