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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridViewRow.cs
- XmlSerializerAssemblyAttribute.cs
- QueryReaderSettings.cs
- Char.cs
- DataExchangeServiceBinder.cs
- EditCommandColumn.cs
- CodeSnippetCompileUnit.cs
- mediapermission.cs
- SignatureSummaryDialog.cs
- ObjectAnimationBase.cs
- NetNamedPipeBindingElement.cs
- validationstate.cs
- FontDialog.cs
- CqlWriter.cs
- GenericsNotImplementedException.cs
- VoiceInfo.cs
- BamlTreeUpdater.cs
- BaseServiceProvider.cs
- TagPrefixCollection.cs
- XmlDataLoader.cs
- OleAutBinder.cs
- QueryOptionExpression.cs
- SchemaMapping.cs
- HttpHandlerAction.cs
- ParameterModifier.cs
- FacetDescription.cs
- WebPartAddingEventArgs.cs
- WmlMobileTextWriter.cs
- WebPartsSection.cs
- VisualStyleElement.cs
- XmlConvert.cs
- Configuration.cs
- RefExpr.cs
- CustomSignedXml.cs
- CustomValidator.cs
- UnsafeNativeMethods.cs
- DataComponentMethodGenerator.cs
- ManagedFilter.cs
- ActionItem.cs
- SessionIDManager.cs
- CounterNameConverter.cs
- LZCodec.cs
- Attributes.cs
- MexHttpBindingElement.cs
- Compiler.cs
- AnchoredBlock.cs
- ParamArrayAttribute.cs
- Fault.cs
- Boolean.cs
- RoleBoolean.cs
- AutomationPatternInfo.cs
- DATA_BLOB.cs
- SettingsPropertyValueCollection.cs
- BuildProviderAppliesToAttribute.cs
- SafeFindHandle.cs
- COM2IDispatchConverter.cs
- RenameRuleObjectDialog.cs
- MenuItemBindingCollection.cs
- DbProviderServices.cs
- Source.cs
- FtpCachePolicyElement.cs
- SafeNativeMethodsMilCoreApi.cs
- GeneralTransformCollection.cs
- FixedDSBuilder.cs
- HttpAsyncResult.cs
- HostingPreferredMapPath.cs
- RequestQueryProcessor.cs
- TreeNodeClickEventArgs.cs
- KeyInstance.cs
- RelationshipEndMember.cs
- SplitterPanel.cs
- SynchronizationContext.cs
- SessionEndingEventArgs.cs
- HitTestWithPointDrawingContextWalker.cs
- HwndAppCommandInputProvider.cs
- ArraySubsetEnumerator.cs
- PerformanceCountersElement.cs
- GraphicsPath.cs
- UnsafeNetInfoNativeMethods.cs
- EntityCollection.cs
- GPPOINT.cs
- ObjectListCommandsPage.cs
- ShortcutKeysEditor.cs
- securitymgrsite.cs
- Types.cs
- PropertyReferenceSerializer.cs
- HtmlShimManager.cs
- FrameworkRichTextComposition.cs
- GeometryHitTestResult.cs
- ImpersonationOption.cs
- FixUpCollection.cs
- SqlDataSourceCustomCommandEditor.cs
- _NetRes.cs
- ValidationPropertyAttribute.cs
- PublisherIdentityPermission.cs
- GenericPrincipal.cs
- FragmentQuery.cs
- SessionStateContainer.cs
- RunWorkerCompletedEventArgs.cs
- ProfileSettings.cs