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
- DefaultObjectSerializer.cs
- IFlowDocumentViewer.cs
- mongolianshape.cs
- oledbmetadatacolumnnames.cs
- HostingEnvironmentSection.cs
- Table.cs
- ScriptControl.cs
- PlanCompiler.cs
- ColorKeyFrameCollection.cs
- DrawingDrawingContext.cs
- AnnotationAdorner.cs
- HttpConfigurationContext.cs
- TextParagraphCache.cs
- KnowledgeBase.cs
- DelegatingConfigHost.cs
- Typeface.cs
- ModifierKeysValueSerializer.cs
- PackageRelationshipSelector.cs
- ToolBarButton.cs
- QueryOperationResponseOfT.cs
- HMACSHA512.cs
- SelectedGridItemChangedEvent.cs
- Dynamic.cs
- SqlDataSourceStatusEventArgs.cs
- AuthorizationRule.cs
- DoubleLinkList.cs
- DispatcherHookEventArgs.cs
- FieldAccessException.cs
- ZipIOExtraField.cs
- DataListItemCollection.cs
- TimersDescriptionAttribute.cs
- LambdaValue.cs
- sqlstateclientmanager.cs
- ReferenceSchema.cs
- ResourceIDHelper.cs
- OutOfMemoryException.cs
- ScriptingRoleServiceSection.cs
- ExtractedStateEntry.cs
- HashCoreRequest.cs
- SectionInput.cs
- FrameworkContentElement.cs
- UDPClient.cs
- ContainerUtilities.cs
- DataGridPagerStyle.cs
- SoapSchemaImporter.cs
- DesignerActionListCollection.cs
- DoubleCollectionValueSerializer.cs
- XmlCustomFormatter.cs
- XslException.cs
- XamlVector3DCollectionSerializer.cs
- SqlConnection.cs
- SmtpSection.cs
- SHA1CryptoServiceProvider.cs
- ClientOptions.cs
- RuntimeHelpers.cs
- CellParaClient.cs
- _SSPIWrapper.cs
- StylusPointPropertyInfo.cs
- Calendar.cs
- ZipIORawDataFileBlock.cs
- CodeDomLocalizationProvider.cs
- DiagnosticsConfiguration.cs
- IPGlobalProperties.cs
- PathFigure.cs
- AssemblyNameProxy.cs
- ToolStripItemCollection.cs
- GeneralTransformGroup.cs
- ProfessionalColorTable.cs
- CodeMemberField.cs
- QueryStringParameter.cs
- StoragePropertyMapping.cs
- SHA384CryptoServiceProvider.cs
- Peer.cs
- Preprocessor.cs
- VectorCollectionConverter.cs
- SiteMapNodeItemEventArgs.cs
- MergeEnumerator.cs
- DateTimeFormatInfoScanner.cs
- ListViewDeletedEventArgs.cs
- LoginDesignerUtil.cs
- CompositeDataBoundControl.cs
- PersonalizationProviderHelper.cs
- DesignerActionUIService.cs
- ToolStripItemBehavior.cs
- ModelPropertyImpl.cs
- WebPartMinimizeVerb.cs
- TypeReference.cs
- Normalization.cs
- RijndaelManagedTransform.cs
- IISMapPath.cs
- InternalSafeNativeMethods.cs
- XmlSubtreeReader.cs
- DbInsertCommandTree.cs
- SubpageParagraph.cs
- DateTimePicker.cs
- BindStream.cs
- CheckBoxField.cs
- NavigationCommands.cs
- SQLDouble.cs
- ServiceNotStartedException.cs