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
- StrokeNodeEnumerator.cs
- MissingFieldException.cs
- CrossContextChannel.cs
- ScrollItemPattern.cs
- Operator.cs
- BCryptNative.cs
- storepermission.cs
- GeometryValueSerializer.cs
- SyndicationSerializer.cs
- KerberosSecurityTokenProvider.cs
- SiteMapNodeItem.cs
- ReadWriteObjectLock.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Debug.cs
- CommonDialog.cs
- Effect.cs
- ProxyManager.cs
- ClockGroup.cs
- SemanticBasicElement.cs
- ThousandthOfEmRealDoubles.cs
- GenericTextProperties.cs
- TransformValueSerializer.cs
- PersonalizationProviderHelper.cs
- DesignerActionPanel.cs
- KeysConverter.cs
- ContainerParaClient.cs
- OleDbSchemaGuid.cs
- TrayIconDesigner.cs
- NameScopePropertyAttribute.cs
- FunctionDetailsReader.cs
- MsmqInputChannelListenerBase.cs
- WinEventWrap.cs
- TrustManagerMoreInformation.cs
- SocketStream.cs
- FilterEventArgs.cs
- SettingsSection.cs
- NegatedCellConstant.cs
- Configuration.cs
- BigInt.cs
- ClientRuntimeConfig.cs
- Matrix3DValueSerializer.cs
- ExpressionBuilderContext.cs
- DockAndAnchorLayout.cs
- GlyphTypeface.cs
- MaskDesignerDialog.cs
- DataRelationCollection.cs
- StylusPoint.cs
- StatusBar.cs
- CorrelationService.cs
- FrameworkElementFactory.cs
- SqlInternalConnection.cs
- KeyboardEventArgs.cs
- ListBoxItem.cs
- messageonlyhwndwrapper.cs
- BamlTreeNode.cs
- unsafeIndexingFilterStream.cs
- httpapplicationstate.cs
- LinearGradientBrush.cs
- DataTableMappingCollection.cs
- RuntimeWrappedException.cs
- WebBrowser.cs
- OneToOneMappingSerializer.cs
- RoleManagerModule.cs
- WrappedReader.cs
- QueueTransferProtocol.cs
- FontResourceCache.cs
- SecurityValidationBehavior.cs
- NegotiateStream.cs
- CustomPopupPlacement.cs
- RemoteTokenFactory.cs
- ObjectPersistData.cs
- PropertyMetadata.cs
- CreateUserWizardAutoFormat.cs
- StylusPlugin.cs
- SqlCacheDependency.cs
- XDeferredAxisSource.cs
- ConsoleKeyInfo.cs
- DataViewListener.cs
- RotateTransform.cs
- HMAC.cs
- QilPatternFactory.cs
- NavigatorOutput.cs
- GC.cs
- Object.cs
- SqlHelper.cs
- TextEndOfSegment.cs
- ListBoxAutomationPeer.cs
- HeaderedContentControl.cs
- IdentityNotMappedException.cs
- securitycriticaldataformultiplegetandset.cs
- UriWriter.cs
- ConstraintStruct.cs
- FilteredDataSetHelper.cs
- WmpBitmapDecoder.cs
- SmiSettersStream.cs
- DeadCharTextComposition.cs
- TemplateParser.cs
- ButtonPopupAdapter.cs
- AuthStoreRoleProvider.cs
- DependsOnAttribute.cs