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
- CultureSpecificStringDictionary.cs
- SoapBinding.cs
- SQLBinaryStorage.cs
- Wow64ConfigurationLoader.cs
- ExceptionValidationRule.cs
- ProcessModuleCollection.cs
- AppSecurityManager.cs
- PointAnimation.cs
- WSHttpBindingBase.cs
- NotImplementedException.cs
- ConfigurationManagerHelper.cs
- LinqDataSourceContextEventArgs.cs
- BezierSegment.cs
- X509Utils.cs
- CompositeActivityMarkupSerializer.cs
- SmtpFailedRecipientsException.cs
- CacheEntry.cs
- QueryableFilterRepeater.cs
- GridView.cs
- ResourcesBuildProvider.cs
- SortQuery.cs
- UndoManager.cs
- ConfigXmlCDataSection.cs
- MarkupCompilePass1.cs
- ScrollPattern.cs
- DataBindingCollectionEditor.cs
- TableLayoutCellPaintEventArgs.cs
- EdmItemCollection.cs
- AnnotationMap.cs
- XmlNamedNodeMap.cs
- IndentTextWriter.cs
- ContentPresenter.cs
- SoapServerProtocol.cs
- DataSourceXmlTextReader.cs
- TextEncodedRawTextWriter.cs
- ReaderOutput.cs
- RegexCode.cs
- LocalizationParserHooks.cs
- DeadCharTextComposition.cs
- MSHTMLHost.cs
- OdbcConnectionStringbuilder.cs
- StreamInfo.cs
- UnmanagedMemoryStreamWrapper.cs
- TreeView.cs
- ClientData.cs
- ClientTarget.cs
- HttpPostedFile.cs
- SynchronizedPool.cs
- RoutedEvent.cs
- WSSecureConversationDec2005.cs
- MostlySingletonList.cs
- PinnedBufferMemoryStream.cs
- ConfigXmlElement.cs
- PartitionerStatic.cs
- DiscreteKeyFrames.cs
- StoreAnnotationsMap.cs
- DataSourceSelectArguments.cs
- SoapProtocolReflector.cs
- GeometryGroup.cs
- JavaScriptObjectDeserializer.cs
- listitem.cs
- BlobPersonalizationState.cs
- DataBinding.cs
- _ShellExpression.cs
- MatrixTransform3D.cs
- PerfCounters.cs
- BackoffTimeoutHelper.cs
- WebPartRestoreVerb.cs
- ListView.cs
- EncryptedData.cs
- Part.cs
- XamlReader.cs
- DomainUpDown.cs
- NameValuePair.cs
- HandleRef.cs
- ApplicationBuildProvider.cs
- ToolStripRenderEventArgs.cs
- FilteredAttributeCollection.cs
- OrderedDictionary.cs
- XomlCompilerResults.cs
- GZipStream.cs
- SemanticResultValue.cs
- DatagridviewDisplayedBandsData.cs
- SqlProviderManifest.cs
- FunctionUpdateCommand.cs
- EntityDataSourceContainerNameConverter.cs
- SettingsBase.cs
- CompressedStack.cs
- DbConnectionPool.cs
- DbDataReader.cs
- ControlBuilderAttribute.cs
- BezierSegment.cs
- GeneralTransformGroup.cs
- WindowsRichEditRange.cs
- IgnoreSectionHandler.cs
- wgx_commands.cs
- MailWriter.cs
- DockPanel.cs
- HttpClientCertificate.cs
- XPathDescendantIterator.cs