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
- GlobalItem.cs
- PersonalizationProviderCollection.cs
- SQLBytesStorage.cs
- PasswordTextContainer.cs
- DataServiceHostFactory.cs
- TokenCreationException.cs
- InstanceLockQueryResult.cs
- BackgroundFormatInfo.cs
- SerializationInfoEnumerator.cs
- XmlQueryContext.cs
- NewArrayExpression.cs
- ScopeElement.cs
- HorizontalAlignConverter.cs
- PackageProperties.cs
- SuppressIldasmAttribute.cs
- DebugView.cs
- TextBoxAutomationPeer.cs
- ObjectTag.cs
- BitmapEffectDrawingContent.cs
- TranslateTransform3D.cs
- AnnotationComponentManager.cs
- DbConnectionPool.cs
- RawStylusActions.cs
- DependencyPropertyChangedEventArgs.cs
- Int32AnimationBase.cs
- BrowserCapabilitiesCodeGenerator.cs
- SequenceDesignerAccessibleObject.cs
- ReferencedCollectionType.cs
- MultiBindingExpression.cs
- CompensateDesigner.cs
- BitmapEffectCollection.cs
- ClientSettings.cs
- DefaultValidator.cs
- ArrangedElement.cs
- RegexReplacement.cs
- OutputWindow.cs
- DataViewSettingCollection.cs
- ClientScriptManagerWrapper.cs
- Duration.cs
- Constants.cs
- SqlFormatter.cs
- Misc.cs
- SymbolMethod.cs
- EmptyQuery.cs
- PersonalizableAttribute.cs
- ItemAutomationPeer.cs
- _SslState.cs
- StateItem.cs
- CompoundFileDeflateTransform.cs
- TraceProvider.cs
- RichTextBox.cs
- _FtpControlStream.cs
- DynamicMethod.cs
- StatusBar.cs
- SqlErrorCollection.cs
- FileRecordSequenceHelper.cs
- SqlBooleanMismatchVisitor.cs
- documentation.cs
- SiteMapProvider.cs
- Component.cs
- OdbcFactory.cs
- InputElement.cs
- DataBinding.cs
- ScriptHandlerFactory.cs
- SoapCodeExporter.cs
- DataControlPagerLinkButton.cs
- TrueReadOnlyCollection.cs
- LogEntryHeaderDeserializer.cs
- UiaCoreApi.cs
- QilTypeChecker.cs
- ContextMenuAutomationPeer.cs
- FamilyTypeface.cs
- CodeTryCatchFinallyStatement.cs
- DataGridViewCheckBoxColumn.cs
- ValidationHelper.cs
- CodeConditionStatement.cs
- ServiceModelSecurityTokenTypes.cs
- propertyentry.cs
- RotationValidation.cs
- BrowserCapabilitiesFactory.cs
- RedirectionProxy.cs
- ProtocolsConfigurationHandler.cs
- TextContainer.cs
- CreateUserErrorEventArgs.cs
- TraceFilter.cs
- Odbc32.cs
- SizeConverter.cs
- PartitionResolver.cs
- PluggableProtocol.cs
- OleDbInfoMessageEvent.cs
- CustomExpressionEventArgs.cs
- VisualBasic.cs
- StringToken.cs
- VisualState.cs
- PartitionResolver.cs
- StateBag.cs
- SslStream.cs
- COM2FontConverter.cs
- CapabilitiesRule.cs
- ConfigXmlSignificantWhitespace.cs