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
- ArrayConverter.cs
- ValueTypeFixupInfo.cs
- CodeDelegateInvokeExpression.cs
- BlurBitmapEffect.cs
- PersianCalendar.cs
- ColumnMapTranslator.cs
- DiagnosticTraceSchemas.cs
- ConfigurationSettings.cs
- SystemDiagnosticsSection.cs
- brushes.cs
- ConfigurationStrings.cs
- diagnosticsswitches.cs
- SqlCacheDependency.cs
- AuthorizationRule.cs
- QueryIntervalOp.cs
- AuthenticationServiceManager.cs
- Solver.cs
- SyndicationDeserializer.cs
- WebPartsPersonalizationAuthorization.cs
- XmlDesignerDataSourceView.cs
- Graphics.cs
- ToolboxItemFilterAttribute.cs
- StateChangeEvent.cs
- UIPermission.cs
- TraceLog.cs
- TagPrefixInfo.cs
- RoutedEventArgs.cs
- ExcCanonicalXml.cs
- cookiecontainer.cs
- HScrollProperties.cs
- ArgIterator.cs
- Oid.cs
- CoTaskMemHandle.cs
- AuthorizationRule.cs
- ExtendLockCommand.cs
- AdCreatedEventArgs.cs
- ProfessionalColors.cs
- WebSysDisplayNameAttribute.cs
- StyleSelector.cs
- DataPagerFieldCommandEventArgs.cs
- RuleSettings.cs
- DebugInfoGenerator.cs
- Content.cs
- MexHttpsBindingCollectionElement.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ToolBarOverflowPanel.cs
- SpnEndpointIdentityExtension.cs
- storepermission.cs
- NavigationProperty.cs
- ArrayHelper.cs
- ApplicationActivator.cs
- PersonalizablePropertyEntry.cs
- DataGridState.cs
- AnchorEditor.cs
- DictionaryEntry.cs
- EventLog.cs
- DrawingBrush.cs
- ReflectionUtil.cs
- XmlSchemaGroupRef.cs
- PerformanceCounterCategory.cs
- SelectionPatternIdentifiers.cs
- GridViewUpdateEventArgs.cs
- Asn1Utilities.cs
- SubqueryTrackingVisitor.cs
- FileSystemWatcher.cs
- Rect3D.cs
- SettingsPropertyCollection.cs
- ValueProviderWrapper.cs
- LocalizationParserHooks.cs
- EditableLabelControl.cs
- PropertySourceInfo.cs
- BufferedGraphicsManager.cs
- QueryExpression.cs
- KeyBinding.cs
- ListManagerBindingsCollection.cs
- XmlSecureResolver.cs
- BufferedGraphics.cs
- SHA512.cs
- RewritingPass.cs
- HttpFileCollection.cs
- WorkflowPersistenceService.cs
- TagNameToTypeMapper.cs
- DataListItemCollection.cs
- MultiBinding.cs
- DropDownList.cs
- NumberFormatInfo.cs
- CodeMethodInvokeExpression.cs
- SqlFormatter.cs
- VectorAnimation.cs
- AnnotationResourceCollection.cs
- DependencySource.cs
- ProfileElement.cs
- PageThemeParser.cs
- PropertyChangingEventArgs.cs
- HttpRequestCacheValidator.cs
- ValidationSummaryDesigner.cs
- LicenseContext.cs
- TextElementEnumerator.cs
- UnsafeNativeMethods.cs
- XamlStyleSerializer.cs