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
- WaitHandle.cs
- sqlstateclientmanager.cs
- HttpCookieCollection.cs
- EntityProviderFactory.cs
- EncoderParameter.cs
- ExternalDataExchangeService.cs
- Message.cs
- FlowDocumentPage.cs
- HandlerFactoryCache.cs
- MediaContext.cs
- MenuItemStyleCollection.cs
- ListViewCommandEventArgs.cs
- LabelLiteral.cs
- RecommendedAsConfigurableAttribute.cs
- ArgumentOutOfRangeException.cs
- ArrayExtension.cs
- CachedPathData.cs
- SchemaImporter.cs
- ScaleTransform.cs
- SqlTrackingWorkflowInstance.cs
- securitycriticaldata.cs
- SqlEnums.cs
- ImportOptions.cs
- WebPartConnectionsCancelEventArgs.cs
- Publisher.cs
- TreeViewHitTestInfo.cs
- ScriptBehaviorDescriptor.cs
- RequestStatusBarUpdateEventArgs.cs
- Config.cs
- XamlParser.cs
- StringAnimationBase.cs
- TextFormattingConverter.cs
- CompilerState.cs
- TypeValidationEventArgs.cs
- CollectionConverter.cs
- XappLauncher.cs
- XsltArgumentList.cs
- iisPickupDirectory.cs
- AttachedAnnotationChangedEventArgs.cs
- LoadWorkflowByKeyAsyncResult.cs
- SqlDataSourceCommandEventArgs.cs
- DefaultValueConverter.cs
- PrintPreviewDialog.cs
- MetabaseServerConfig.cs
- ManifestSignatureInformation.cs
- LiteralControl.cs
- GridViewCommandEventArgs.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SoapEnumAttribute.cs
- TableLayoutSettings.cs
- SortQuery.cs
- UrlPath.cs
- WebResourceUtil.cs
- ScrollItemPattern.cs
- FileDetails.cs
- CommandField.cs
- XPathParser.cs
- Section.cs
- TypeConverter.cs
- WebPartManager.cs
- PrimaryKeyTypeConverter.cs
- AssemblyLoader.cs
- SystemIPGlobalStatistics.cs
- Soap.cs
- CatalogPartChrome.cs
- SqlTransaction.cs
- DEREncoding.cs
- OSFeature.cs
- GradientSpreadMethodValidation.cs
- PrintPreviewGraphics.cs
- _LocalDataStoreMgr.cs
- TemplateBindingExtensionConverter.cs
- ConfigurationStrings.cs
- RegexReplacement.cs
- XmlnsPrefixAttribute.cs
- ResolvedKeyFrameEntry.cs
- RightsManagementInformation.cs
- TraceHandlerErrorFormatter.cs
- Convert.cs
- ContextStack.cs
- GroupQuery.cs
- AmbientLight.cs
- BitmapEffectDrawingContent.cs
- MimeImporter.cs
- CopyAttributesAction.cs
- IndependentlyAnimatedPropertyMetadata.cs
- PathData.cs
- Registry.cs
- SQLBytesStorage.cs
- ForeignKeyConstraint.cs
- CodeValidator.cs
- ExecutionContext.cs
- KeyInstance.cs
- Debug.cs
- DataGridViewRow.cs
- ListDesigner.cs
- ServiceDescriptionSerializer.cs
- FixedSOMLineRanges.cs
- ActionItem.cs
- ComboBoxAutomationPeer.cs