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
- DataViewManager.cs
- OrthographicCamera.cs
- OverlappedAsyncResult.cs
- FormViewInsertedEventArgs.cs
- ContainerSelectorBehavior.cs
- SafeNativeMemoryHandle.cs
- DynamicPropertyHolder.cs
- EnumCodeDomSerializer.cs
- TypeNameHelper.cs
- DataTableNewRowEvent.cs
- Thumb.cs
- FlowDocumentReaderAutomationPeer.cs
- PeerObject.cs
- TraceHwndHost.cs
- BindingCompleteEventArgs.cs
- BamlBinaryReader.cs
- GridViewRowCollection.cs
- BinaryObjectWriter.cs
- SemanticBasicElement.cs
- WorkflowServiceInstance.cs
- ServiceMemoryGates.cs
- ReverseComparer.cs
- XmlBinaryReaderSession.cs
- CultureTableRecord.cs
- ImplicitInputBrush.cs
- DesignTimeVisibleAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- XmlnsCache.cs
- SqlProviderServices.cs
- ValueTable.cs
- DesignerActionItem.cs
- TabControl.cs
- EntityContainerAssociationSet.cs
- StringInfo.cs
- HttpStaticObjectsCollectionBase.cs
- codemethodreferenceexpression.cs
- Registry.cs
- ResourceAssociationTypeEnd.cs
- xml.cs
- ExpressionBuilderCollection.cs
- ContentType.cs
- RegularExpressionValidator.cs
- RuleSetBrowserDialog.cs
- ConnectionPoint.cs
- ComAdminInterfaces.cs
- ModelItemCollectionImpl.cs
- PDBReader.cs
- followingquery.cs
- GradientStop.cs
- PointCollection.cs
- WeakReference.cs
- IOException.cs
- XPathMessageFilterElement.cs
- Mappings.cs
- Descriptor.cs
- CacheEntry.cs
- CodeExporter.cs
- GestureRecognizer.cs
- ZipIOModeEnforcingStream.cs
- KeyTime.cs
- XsltContext.cs
- ConnectionOrientedTransportChannelFactory.cs
- ListViewSelectEventArgs.cs
- BufferBuilder.cs
- DataGridViewTextBoxCell.cs
- PeerNameRegistration.cs
- EntityParameterCollection.cs
- PiiTraceSource.cs
- CodeMethodInvokeExpression.cs
- XmlElementList.cs
- CustomExpression.cs
- TreeBuilderXamlTranslator.cs
- XmlMemberMapping.cs
- TextBox.cs
- FormatStringEditor.cs
- ReliableSessionBindingElementImporter.cs
- VisualTreeUtils.cs
- StateMachineWorkflowDesigner.cs
- PriorityQueue.cs
- OLEDB_Util.cs
- CodeActivityContext.cs
- InvalidCastException.cs
- CompareValidator.cs
- ResourceAssociationSet.cs
- SimpleApplicationHost.cs
- ServiceMetadataExtension.cs
- ContentElement.cs
- UncommonField.cs
- PathTooLongException.cs
- SimpleHandlerFactory.cs
- CacheOutputQuery.cs
- SmiEventSink_DeferedProcessing.cs
- CheckedListBox.cs
- RtfToXamlReader.cs
- SqlServices.cs
- DesignerActionList.cs
- Version.cs
- TextTreeNode.cs
- Soap.cs
- PropertyCollection.cs