Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / NotifyParentPropertyAttribute.cs / 1 / NotifyParentPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] public sealed class NotifyParentPropertyAttribute : Attribute { ////// Indicates whether the parent property is notified /// if a child namespace property is modified. /// ////// public static readonly NotifyParentPropertyAttribute Yes = new NotifyParentPropertyAttribute(true); ////// Specifies that the parent property should be notified on changes to the child class property. This field is read-only. /// ////// public static readonly NotifyParentPropertyAttribute No = new NotifyParentPropertyAttribute(false); ///Specifies that the parent property should not be notified of changes to the child class property. This field is read-only. ////// public static readonly NotifyParentPropertyAttribute Default = No; private bool notifyParent = false; ///Specifies the default attribute state, that the parent property should not be notified of changes to the child class property. /// This field is read-only. ////// public NotifyParentPropertyAttribute(bool notifyParent) { this.notifyParent = notifyParent; } ///Initiailzes a new instance of the NotifyPropertyAttribute class /// that uses the specified value /// to indicate whether the parent property should be notified when a child namespace property is modified. ////// public bool NotifyParent { get { return notifyParent; } } ////// Gets or sets whether the parent property should be notified /// on changes to a child namespace property. /// ////// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is NotifyParentPropertyAttribute)) { return ((NotifyParentPropertyAttribute)obj).NotifyParent == notifyParent; } return false; } ////// Tests whether the specified object is the same as the current object. /// ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return this.Equals(Default); } } }/// Gets whether this attribute is ///by default. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EnumerableRowCollectionExtensions.cs
- InplaceBitmapMetadataWriter.cs
- MatrixStack.cs
- OrderedDictionary.cs
- WebPartZoneBaseDesigner.cs
- CustomWebEventKey.cs
- ProxyWebPart.cs
- TextEditorMouse.cs
- Globals.cs
- CalendarData.cs
- KnownTypesHelper.cs
- CodeExpressionStatement.cs
- ReliabilityContractAttribute.cs
- PageContentCollection.cs
- GridEntry.cs
- SynchronizationLockException.cs
- IDispatchConstantAttribute.cs
- ValueTypeFixupInfo.cs
- WebControlsSection.cs
- WorkflowControlClient.cs
- ValidationRuleCollection.cs
- ExpressionEditorAttribute.cs
- HtmlInputButton.cs
- ScriptRef.cs
- ServicesUtilities.cs
- RectAnimationUsingKeyFrames.cs
- StringInfo.cs
- ContentIterators.cs
- CallbackException.cs
- WebPartZoneBase.cs
- RotationValidation.cs
- SmtpReplyReaderFactory.cs
- IdentityValidationException.cs
- itemelement.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ExitEventArgs.cs
- ImageClickEventArgs.cs
- RadioButton.cs
- AnimationClock.cs
- DbConnectionClosed.cs
- AuthenticationModuleElementCollection.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- KeyEventArgs.cs
- DispatcherHookEventArgs.cs
- SignedXml.cs
- configsystem.cs
- DataGridViewCellPaintingEventArgs.cs
- ListComponentEditorPage.cs
- SegmentInfo.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Merger.cs
- RecipientInfo.cs
- IItemContainerGenerator.cs
- GroupItemAutomationPeer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Stroke2.cs
- As.cs
- Span.cs
- MergeFilterQuery.cs
- VirtualDirectoryMappingCollection.cs
- MimeImporter.cs
- DrawListViewItemEventArgs.cs
- ResourceProperty.cs
- RijndaelManaged.cs
- GridEntryCollection.cs
- RegisteredDisposeScript.cs
- UTF32Encoding.cs
- CLSCompliantAttribute.cs
- DataDocumentXPathNavigator.cs
- CompensationDesigner.cs
- DataColumnMappingCollection.cs
- FormatException.cs
- XmlDataLoader.cs
- WizardForm.cs
- ReachUIElementCollectionSerializer.cs
- RegexMatch.cs
- Activator.cs
- XmlNodeList.cs
- PersonalizationProviderHelper.cs
- BinHexDecoder.cs
- ProfileInfo.cs
- SystemColorTracker.cs
- DependencyPropertyConverter.cs
- StylusDownEventArgs.cs
- ClientSettingsProvider.cs
- ProfilePropertySettings.cs
- EntityDataSourceDesigner.cs
- NoClickablePointException.cs
- SelectingProviderEventArgs.cs
- PermissionListSet.cs
- RegexMatch.cs
- FunctionQuery.cs
- DuplicateWaitObjectException.cs
- SafeArchiveContext.cs
- EventBindingService.cs
- OleDbError.cs
- ConfigXmlCDataSection.cs
- TTSEvent.cs
- VisualBasicSettingsHandler.cs
- ObjectTag.cs