Code:
/ DotNET / DotNET / 8.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
- ScopedKnownTypes.cs
- ListSortDescriptionCollection.cs
- BitmapEffectGeneralTransform.cs
- FlowNode.cs
- ConfigurationSchemaErrors.cs
- TargetParameterCountException.cs
- _NestedMultipleAsyncResult.cs
- KnownTypeDataContractResolver.cs
- CodeParameterDeclarationExpression.cs
- PropertySegmentSerializationProvider.cs
- RoutedEventConverter.cs
- PageContent.cs
- BinaryParser.cs
- ItemContainerProviderWrapper.cs
- XmlSchemas.cs
- CompilerState.cs
- RSAOAEPKeyExchangeFormatter.cs
- SQLInt16.cs
- DataGridView.cs
- DesignerSerializationOptionsAttribute.cs
- SelectionEditor.cs
- WebPartConnectionsCancelVerb.cs
- XmlLanguage.cs
- SerializableAttribute.cs
- UnknownWrapper.cs
- EdmSchemaAttribute.cs
- DrawingCollection.cs
- Delegate.cs
- mediapermission.cs
- XPathNavigator.cs
- UnsafeNativeMethods.cs
- VisualBasicValue.cs
- Guid.cs
- MetafileHeader.cs
- RegisteredExpandoAttribute.cs
- RectangleGeometry.cs
- RepeaterItem.cs
- DesignerAdapterAttribute.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- SqlEnums.cs
- ReferencedAssembly.cs
- SlotInfo.cs
- FontFamily.cs
- DataGridViewBindingCompleteEventArgs.cs
- InkCanvasSelection.cs
- TextElementEnumerator.cs
- XmlSchemaAll.cs
- CancellableEnumerable.cs
- TypeExtensionConverter.cs
- RequestSecurityTokenResponseCollection.cs
- MeasureData.cs
- FontFaceLayoutInfo.cs
- BehaviorEditorPart.cs
- NamespaceList.cs
- WriteFileContext.cs
- HwndSourceKeyboardInputSite.cs
- HtmlHistory.cs
- FontUnit.cs
- SiteMapNode.cs
- EventSetter.cs
- PtsPage.cs
- AlphaSortedEnumConverter.cs
- InternalSafeNativeMethods.cs
- PolicyManager.cs
- Pen.cs
- Command.cs
- XmlIterators.cs
- RootBrowserWindowProxy.cs
- MatchSingleFxEngineOpcode.cs
- Trace.cs
- _SslStream.cs
- SqlFacetAttribute.cs
- DataDocumentXPathNavigator.cs
- CodeMethodReturnStatement.cs
- IgnoreFlushAndCloseStream.cs
- WorkflowInstanceTerminatedRecord.cs
- EditorZone.cs
- LayoutSettings.cs
- KeyNameIdentifierClause.cs
- ActivityValidationServices.cs
- SendMailErrorEventArgs.cs
- RemotingException.cs
- DispatcherFrame.cs
- JournalEntryListConverter.cs
- EnglishPluralizationService.cs
- VolatileEnlistmentState.cs
- PropertyGridEditorPart.cs
- ParameterExpression.cs
- Rules.cs
- WindowsFormsDesignerOptionService.cs
- TextPointerBase.cs
- PolyBezierSegment.cs
- VectorCollection.cs
- ButtonBaseAdapter.cs
- EasingFunctionBase.cs
- CurrentChangedEventManager.cs
- PhonemeConverter.cs
- CodeVariableReferenceExpression.cs
- mediaeventshelper.cs
- DesigntimeLicenseContextSerializer.cs