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
- LocalClientSecuritySettingsElement.cs
- LocalizationParserHooks.cs
- Vector3dCollection.cs
- SelectionItemProviderWrapper.cs
- Buffer.cs
- BinHexDecoder.cs
- SelectionItemPattern.cs
- VsPropertyGrid.cs
- ClientCultureInfo.cs
- Verify.cs
- WeakEventManager.cs
- ResponseStream.cs
- UrlMapping.cs
- RadialGradientBrush.cs
- SortFieldComparer.cs
- XmlWhitespace.cs
- WsdlBuildProvider.cs
- PaintValueEventArgs.cs
- Set.cs
- XmlSchemaFacet.cs
- InvalidCastException.cs
- WindowsMenu.cs
- DateTimeParse.cs
- DbDataSourceEnumerator.cs
- Grant.cs
- CategoryValueConverter.cs
- ResourceLoader.cs
- ThicknessKeyFrameCollection.cs
- SmiRequestExecutor.cs
- SelectedPathEditor.cs
- XamlLoadErrorInfo.cs
- ClientOptions.cs
- DataGridViewColumnCollection.cs
- SafeRightsManagementSessionHandle.cs
- SQLChars.cs
- BitmapEffectDrawingContent.cs
- TransportSecurityProtocolFactory.cs
- DateTimeFormatInfo.cs
- SearchExpression.cs
- CodeDOMProvider.cs
- DataGridViewCellFormattingEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- RuntimeIdentifierPropertyAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- TabPage.cs
- UrlParameterReader.cs
- peersecurityelement.cs
- LayoutEditorPart.cs
- ADConnectionHelper.cs
- Authorization.cs
- ObjectDataSource.cs
- WebConfigurationHostFileChange.cs
- sqlser.cs
- RuntimeTrackingProfile.cs
- NotSupportedException.cs
- SessionStateModule.cs
- Graphics.cs
- CellLabel.cs
- ToggleButtonAutomationPeer.cs
- ConditionChanges.cs
- DirectoryGroupQuery.cs
- DisplayNameAttribute.cs
- ParallelForEach.cs
- DynamicRenderer.cs
- FlowLayoutPanel.cs
- ViewGenResults.cs
- PropertyEmitterBase.cs
- DefaultAsyncDataDispatcher.cs
- File.cs
- FactoryId.cs
- CodeTypeParameterCollection.cs
- DelegateSerializationHolder.cs
- XmlnsCache.cs
- OrderByBuilder.cs
- Funcletizer.cs
- PrePrepareMethodAttribute.cs
- StyleModeStack.cs
- Assembly.cs
- TextUtf8RawTextWriter.cs
- ZipPackage.cs
- OdbcParameter.cs
- SrgsSubset.cs
- TypeInitializationException.cs
- DoubleAnimationUsingPath.cs
- ConstNode.cs
- ThaiBuddhistCalendar.cs
- Rect3D.cs
- SmtpException.cs
- UnsafeMethods.cs
- QueryCacheEntry.cs
- LinqDataSourceSelectEventArgs.cs
- DependencyProperty.cs
- DataControlCommands.cs
- EdmItemError.cs
- Vector3DAnimationUsingKeyFrames.cs
- EdmRelationshipRoleAttribute.cs
- RijndaelManagedTransform.cs
- GridViewPageEventArgs.cs
- GB18030Encoding.cs
- AppSettingsExpressionBuilder.cs