Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets whether this attribute is ///by default. /// // 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
- XmlEncoding.cs
- SqlWorkflowPersistenceService.cs
- UnmanagedMemoryAccessor.cs
- SmiEventSink_Default.cs
- MemberJoinTreeNode.cs
- MaxSessionCountExceededException.cs
- WaitForChangedResult.cs
- WebScriptMetadataMessage.cs
- LogicalExpr.cs
- SystemSounds.cs
- CompilerGeneratedAttribute.cs
- ApplicationSecurityInfo.cs
- DataViewManager.cs
- SolidColorBrush.cs
- SendKeys.cs
- DataControlFieldCollection.cs
- XmlSchemaProviderAttribute.cs
- _HeaderInfo.cs
- FrameworkObject.cs
- PackagePart.cs
- FacetDescriptionElement.cs
- ServiceNotStartedException.cs
- TaskbarItemInfo.cs
- CompositeActivityCodeGenerator.cs
- StylusPointProperties.cs
- PkcsUtils.cs
- LineServicesCallbacks.cs
- ThicknessAnimationUsingKeyFrames.cs
- ListViewAutomationPeer.cs
- XPathBinder.cs
- TdsEnums.cs
- XmlAttributes.cs
- BindingGroup.cs
- RealProxy.cs
- X509CertificateClaimSet.cs
- ConfigXmlSignificantWhitespace.cs
- TransportListener.cs
- ConfigurationValues.cs
- Style.cs
- MeasureData.cs
- ActivityDesignerHighlighter.cs
- webeventbuffer.cs
- VideoDrawing.cs
- GroupItem.cs
- AsyncOperation.cs
- SessionSwitchEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- DbDataReader.cs
- TextRangeSerialization.cs
- PnrpPermission.cs
- FixUpCollection.cs
- OAVariantLib.cs
- VectorConverter.cs
- CodeDomSerializerBase.cs
- MetadataItem_Static.cs
- UICuesEvent.cs
- XmlProcessingInstruction.cs
- MultipleCopiesCollection.cs
- DefaultWorkflowLoaderService.cs
- BrowserTree.cs
- BrushValueSerializer.cs
- Predicate.cs
- ISAPIWorkerRequest.cs
- InputBindingCollection.cs
- LinearGradientBrush.cs
- SeverityFilter.cs
- ScopelessEnumAttribute.cs
- TreeIterators.cs
- ColorConverter.cs
- RoamingStoreFile.cs
- HttpListenerContext.cs
- XsltLoader.cs
- XpsDocumentEvent.cs
- KeyValueInternalCollection.cs
- InfiniteTimeSpanConverter.cs
- SqlGatherConsumedAliases.cs
- DependencyPropertyDescriptor.cs
- TimeSpanValidator.cs
- XmlWriter.cs
- PassportPrincipal.cs
- ExtensionSimplifierMarkupObject.cs
- CodeMemberField.cs
- HtmlEmptyTagControlBuilder.cs
- SpellerInterop.cs
- ReflectPropertyDescriptor.cs
- FontStyle.cs
- RequestStatusBarUpdateEventArgs.cs
- CodeDirectionExpression.cs
- SemanticTag.cs
- Formatter.cs
- ApplicationSecurityInfo.cs
- ApplicationActivator.cs
- PagesChangedEventArgs.cs
- Message.cs
- GenericWebPart.cs
- DesignerAdapterUtil.cs
- DrawingContextDrawingContextWalker.cs
- ObjectReaderCompiler.cs
- ForEachAction.cs
- SafeIUnknown.cs