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
- AppDomainProtocolHandler.cs
- QilInvokeLateBound.cs
- RegexMatchCollection.cs
- StatusBarPanelClickEvent.cs
- VirtualDirectoryMappingCollection.cs
- GlobalizationAssembly.cs
- Version.cs
- ADMembershipUser.cs
- ISCIIEncoding.cs
- WebBaseEventKeyComparer.cs
- MetabaseSettingsIis7.cs
- XmlSubtreeReader.cs
- Validator.cs
- ProcessHostServerConfig.cs
- NominalTypeEliminator.cs
- WebPartEventArgs.cs
- CheckBoxField.cs
- ToolStripDropDownItemDesigner.cs
- AsyncOperationManager.cs
- WindowsFormsDesignerOptionService.cs
- XXXInfos.cs
- DefaultHttpHandler.cs
- GuidelineCollection.cs
- UrlAuthFailedErrorFormatter.cs
- QilNode.cs
- ApplyTemplatesAction.cs
- SimpleExpression.cs
- UshortList2.cs
- QueryAccessibilityHelpEvent.cs
- HttpChannelHelpers.cs
- ExpandCollapseProviderWrapper.cs
- CorrelationManager.cs
- ProjectionCamera.cs
- ContentPresenter.cs
- ParseChildrenAsPropertiesAttribute.cs
- ViewManager.cs
- DataBindingCollection.cs
- RegisteredExpandoAttribute.cs
- XmlnsDictionary.cs
- ImportOptions.cs
- HeaderUtility.cs
- ErrorWebPart.cs
- XMLUtil.cs
- AlphaSortedEnumConverter.cs
- GatewayIPAddressInformationCollection.cs
- SpellerHighlightLayer.cs
- BroadcastEventHelper.cs
- HttpProfileGroupBase.cs
- CrossContextChannel.cs
- TimeSpanOrInfiniteConverter.cs
- PasswordPropertyTextAttribute.cs
- XpsColorContext.cs
- CounterCreationData.cs
- ContactManager.cs
- FormsAuthenticationConfiguration.cs
- Vector3DValueSerializer.cs
- XmlDataLoader.cs
- WebResourceUtil.cs
- FullTrustAssembly.cs
- NestPullup.cs
- InvokeWebService.cs
- BuildProviderCollection.cs
- Buffer.cs
- ExpandCollapsePattern.cs
- EditableTreeList.cs
- TreeIterator.cs
- PrtTicket_Public.cs
- ModuleConfigurationInfo.cs
- CqlGenerator.cs
- SemaphoreSecurity.cs
- PropertyInfoSet.cs
- XMLUtil.cs
- NotificationContext.cs
- ComponentResourceKeyConverter.cs
- ZipArchive.cs
- PerformanceCounter.cs
- HashSetDebugView.cs
- ItemList.cs
- CompiledIdentityConstraint.cs
- FixedSOMPage.cs
- XmlNodeReader.cs
- MenuTracker.cs
- LineUtil.cs
- TimeSpanMinutesConverter.cs
- Keywords.cs
- SendSecurityHeaderElementContainer.cs
- User.cs
- _AutoWebProxyScriptWrapper.cs
- Point.cs
- Vector3D.cs
- TypeDescriptor.cs
- SafeSystemMetrics.cs
- ContextBase.cs
- RoutedCommand.cs
- mediaclock.cs
- BaseTemplateParser.cs
- PageMediaType.cs
- SyndicationDeserializer.cs
- DataControlReference.cs
- DelegateSerializationHolder.cs