Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / NotifyParentPropertyAttribute.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets whether this attribute is ///by default. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MaterialGroup.cs
- CapabilitiesState.cs
- UnsafeNativeMethods.cs
- PrinterResolution.cs
- SafeFileMapViewHandle.cs
- CacheRequest.cs
- SqlIdentifier.cs
- Wizard.cs
- Classification.cs
- DispatcherEventArgs.cs
- SystemInfo.cs
- CanonicalFontFamilyReference.cs
- TableRowCollection.cs
- FrameworkRichTextComposition.cs
- ColumnResult.cs
- CodeExpressionCollection.cs
- XmlSiteMapProvider.cs
- ReadOnlyActivityGlyph.cs
- ShapingWorkspace.cs
- Switch.cs
- ApplicationServicesHostFactory.cs
- CqlGenerator.cs
- CombinedGeometry.cs
- SafeBitVector32.cs
- HandlerBase.cs
- QilNode.cs
- AnyAllSearchOperator.cs
- HtmlElementEventArgs.cs
- Hashtable.cs
- BaseParser.cs
- FontDifferentiator.cs
- SQLDateTime.cs
- SkewTransform.cs
- InternalConfigHost.cs
- Crc32.cs
- WebServiceAttribute.cs
- DataDocumentXPathNavigator.cs
- XmlSchemaSimpleContentExtension.cs
- WithParamAction.cs
- Vector3DAnimationBase.cs
- SharedStatics.cs
- RangeBaseAutomationPeer.cs
- TabControlToolboxItem.cs
- PropertyGridDesigner.cs
- DependencyPropertyKey.cs
- MetaForeignKeyColumn.cs
- NativeMethods.cs
- ConfigurationStrings.cs
- BitVector32.cs
- Cell.cs
- cookiecollection.cs
- HwndSourceParameters.cs
- VariableModifiersHelper.cs
- JpegBitmapEncoder.cs
- DataControlField.cs
- SinglePageViewer.cs
- BCryptNative.cs
- HyperLinkColumn.cs
- XmlMapping.cs
- smtppermission.cs
- NameValueSectionHandler.cs
- QuotedPrintableStream.cs
- TdsParser.cs
- SqlDataSourceWizardForm.cs
- UITypeEditor.cs
- LingerOption.cs
- MembershipValidatePasswordEventArgs.cs
- MimeFormImporter.cs
- Version.cs
- PriorityBinding.cs
- RuleSettings.cs
- XmlKeywords.cs
- HyperLink.cs
- Point4DConverter.cs
- DataViewManager.cs
- DataGridHelper.cs
- Dictionary.cs
- List.cs
- CustomCategoryAttribute.cs
- PrimitiveSchema.cs
- ServerIdentity.cs
- PointF.cs
- GenerateScriptTypeAttribute.cs
- NativeMethodsOther.cs
- ReadOnlyMetadataCollection.cs
- _LazyAsyncResult.cs
- WebColorConverter.cs
- ProviderUtil.cs
- WebPartMovingEventArgs.cs
- PrintPreviewDialog.cs
- XmlSchemaAnyAttribute.cs
- XamlToRtfWriter.cs
- WebPartZoneCollection.cs
- ObjectPersistData.cs
- PersonalizationAdministration.cs
- ThreadSafeList.cs
- StorageBasedPackageProperties.cs
- SecurityKeyIdentifier.cs
- DataGridViewAccessibleObject.cs
- HttpContextServiceHost.cs