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
- _HelperAsyncResults.cs
- DropDownList.cs
- WhitespaceReader.cs
- InputBuffer.cs
- ClientTargetCollection.cs
- ColumnResizeUndoUnit.cs
- ActivityExecutor.cs
- RuntimeConfigLKG.cs
- ELinqQueryState.cs
- TableItemProviderWrapper.cs
- DataBoundControlActionList.cs
- FileFormatException.cs
- MsmqProcessProtocolHandler.cs
- RelativeSource.cs
- SendDesigner.xaml.cs
- WsdlBuildProvider.cs
- KeyPressEvent.cs
- InheritanceContextHelper.cs
- Mapping.cs
- UInt16.cs
- OracleConnection.cs
- GridViewColumnHeaderAutomationPeer.cs
- ResXResourceSet.cs
- SharedStatics.cs
- CommandField.cs
- SecurityTokenRequirement.cs
- FamilyTypeface.cs
- PointConverter.cs
- OuterGlowBitmapEffect.cs
- WindowsSidIdentity.cs
- RemoteWebConfigurationHostStream.cs
- ValueType.cs
- XmlBinaryWriter.cs
- DataGridColumnReorderingEventArgs.cs
- TextTreeFixupNode.cs
- RowUpdatedEventArgs.cs
- ConstraintCollection.cs
- TrackingAnnotationCollection.cs
- SchemaImporterExtensionElement.cs
- CompiledQueryCacheKey.cs
- SrgsRulesCollection.cs
- TableColumnCollectionInternal.cs
- PropertyChangedEventManager.cs
- CompositeFontInfo.cs
- Misc.cs
- FirewallWrapper.cs
- DataBindingCollectionConverter.cs
- HTMLTagNameToTypeMapper.cs
- NamedObject.cs
- WeakReferenceList.cs
- SHA1CryptoServiceProvider.cs
- ExtensionSurface.cs
- ReflectTypeDescriptionProvider.cs
- CommonObjectSecurity.cs
- RowCache.cs
- BrowserInteropHelper.cs
- ClassHandlersStore.cs
- NumberFunctions.cs
- serverconfig.cs
- QueryPageSettingsEventArgs.cs
- ImportCatalogPart.cs
- ResponseBodyWriter.cs
- RawMouseInputReport.cs
- InspectionWorker.cs
- ExpressionCopier.cs
- ComponentCommands.cs
- PropertyConverter.cs
- TypeHelper.cs
- BlobPersonalizationState.cs
- NamespaceQuery.cs
- XmlSchemaValidator.cs
- BuildProvider.cs
- ComNativeDescriptor.cs
- MbpInfo.cs
- CacheMemory.cs
- LookupBindingPropertiesAttribute.cs
- securestring.cs
- Document.cs
- TerminatorSinks.cs
- TableFieldsEditor.cs
- configsystem.cs
- FocusTracker.cs
- ProfileEventArgs.cs
- XamlToRtfParser.cs
- UserUseLicenseDictionaryLoader.cs
- unsafenativemethodstextservices.cs
- KeyTime.cs
- Container.cs
- CompressEmulationStream.cs
- DiagnosticsConfigurationHandler.cs
- SemanticTag.cs
- Deserializer.cs
- DbConnectionClosed.cs
- SqlDataSourceCustomCommandEditor.cs
- PrinterSettings.cs
- ReadOnlyState.cs
- CursorConverter.cs
- ReferenceSchema.cs
- MultiAsyncResult.cs
- HtmlInputButton.cs