Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ImmutableObjectAttribute.cs / 1305376 / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QilName.cs
- Triplet.cs
- SudsCommon.cs
- SupportingTokenDuplexChannel.cs
- RootBuilder.cs
- HtmlFormParameterReader.cs
- StylusPointProperty.cs
- Vector3dCollection.cs
- PropertySet.cs
- CodePageUtils.cs
- WindowsMenu.cs
- CustomValidator.cs
- QilInvokeLateBound.cs
- TableRowCollection.cs
- InternalDuplexChannelListener.cs
- DataGridRelationshipRow.cs
- PnrpPeerResolverBindingElement.cs
- Rect.cs
- SingleSelectRootGridEntry.cs
- PackagePart.cs
- Evidence.cs
- Menu.cs
- Point3DAnimationBase.cs
- InputMethodStateTypeInfo.cs
- PointValueSerializer.cs
- ManualResetEvent.cs
- ControlEvent.cs
- WSTransactionSection.cs
- ZoneButton.cs
- EncoderParameters.cs
- PrimitiveType.cs
- ExceptionNotification.cs
- SessionStateItemCollection.cs
- XslNumber.cs
- DataSourceHelper.cs
- HttpServerProtocol.cs
- MarkupExtensionReturnTypeAttribute.cs
- FrameworkElement.cs
- DataSourceView.cs
- CustomErrorCollection.cs
- RayMeshGeometry3DHitTestResult.cs
- HttpApplicationStateBase.cs
- ParserOptions.cs
- IntellisenseTextBox.cs
- HttpRuntime.cs
- SamlAttribute.cs
- ShapingEngine.cs
- UserPersonalizationStateInfo.cs
- UnknownBitmapEncoder.cs
- HttpStreamFormatter.cs
- CustomAttributeSerializer.cs
- Compilation.cs
- SapiInterop.cs
- UpDownEvent.cs
- SelectionEditingBehavior.cs
- XmlSchemaComplexContent.cs
- FillRuleValidation.cs
- PerformanceCounterLib.cs
- UpdatePanelControlTrigger.cs
- BypassElement.cs
- LoginCancelEventArgs.cs
- Focus.cs
- GroupBoxRenderer.cs
- XmlSerializerNamespaces.cs
- TextClipboardData.cs
- LinqDataSourceDisposeEventArgs.cs
- TypeResolver.cs
- XPathBinder.cs
- DataTableNewRowEvent.cs
- DependencyObject.cs
- ConstrainedGroup.cs
- UniqueIdentifierService.cs
- ListViewDesigner.cs
- MatrixKeyFrameCollection.cs
- RtfNavigator.cs
- MediaScriptCommandRoutedEventArgs.cs
- EditorResources.cs
- MD5CryptoServiceProvider.cs
- DataGridViewComboBoxColumnDesigner.cs
- QilInvoke.cs
- ResXFileRef.cs
- CommandHelpers.cs
- ListCollectionView.cs
- TransformerConfigurationWizardBase.cs
- CompositeActivityTypeDescriptorProvider.cs
- TextFragmentEngine.cs
- EtwTrace.cs
- KoreanCalendar.cs
- ProgressChangedEventArgs.cs
- ListBindingConverter.cs
- HtmlUtf8RawTextWriter.cs
- ImageDrawing.cs
- sqlstateclientmanager.cs
- HorizontalAlignConverter.cs
- RolePrincipal.cs
- RuntimeConfigLKG.cs
- FileNameEditor.cs
- BitmapCodecInfo.cs
- SqlServices.cs
- MdiWindowListStrip.cs