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
- StorageBasedPackageProperties.cs
- BamlResourceSerializer.cs
- ObjectViewFactory.cs
- GeometryHitTestParameters.cs
- StylusLogic.cs
- TCPClient.cs
- ComponentSerializationService.cs
- remotingproxy.cs
- SqlCommand.cs
- GenericParameterDataContract.cs
- CodeSubDirectory.cs
- TableItemStyle.cs
- MachinePropertyVariants.cs
- DataSourceSelectArguments.cs
- ResXFileRef.cs
- FlowDocumentView.cs
- ChildTable.cs
- RC2.cs
- PinnedBufferMemoryStream.cs
- Image.cs
- UpdatePanelTriggerCollection.cs
- TextWriterTraceListener.cs
- WindowsToolbarItemAsMenuItem.cs
- SettingsPropertyIsReadOnlyException.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Scene3D.cs
- EdmSchemaError.cs
- SocketInformation.cs
- MissingManifestResourceException.cs
- ResourceSet.cs
- ProtectedConfigurationProviderCollection.cs
- PropertyPushdownHelper.cs
- IndexedString.cs
- SecurityHelper.cs
- LiteralDesigner.cs
- DataBindingHandlerAttribute.cs
- HwndSourceParameters.cs
- DataSpaceManager.cs
- DataTable.cs
- EntityDataSourceDataSelection.cs
- MemberCollection.cs
- ImportCatalogPart.cs
- ExtensibleClassFactory.cs
- IncrementalHitTester.cs
- SetterBaseCollection.cs
- TemplateParser.cs
- RNGCryptoServiceProvider.cs
- DateBoldEvent.cs
- RealProxy.cs
- CriticalFinalizerObject.cs
- CriticalHandle.cs
- JsonEncodingStreamWrapper.cs
- SafeWaitHandle.cs
- ProgramNode.cs
- UserMapPath.cs
- GuidTagList.cs
- DataTableMapping.cs
- WebPartMinimizeVerb.cs
- SqlTriggerContext.cs
- PropertyCondition.cs
- ButtonColumn.cs
- SevenBitStream.cs
- IssuedTokenParametersEndpointAddressElement.cs
- NativeRecognizer.cs
- CalendarAutoFormatDialog.cs
- _UriTypeConverter.cs
- EventLogPermissionEntry.cs
- AppModelKnownContentFactory.cs
- ContentOnlyMessage.cs
- TextEffectResolver.cs
- coordinator.cs
- PartialTrustVisibleAssembliesSection.cs
- OperandQuery.cs
- HttpHandlerActionCollection.cs
- WindowsListViewGroupSubsetLink.cs
- ColumnCollection.cs
- TableDetailsCollection.cs
- WeakEventTable.cs
- TdsValueSetter.cs
- MulticastIPAddressInformationCollection.cs
- SHA384.cs
- UrlPath.cs
- AppSettingsExpressionBuilder.cs
- RegisteredDisposeScript.cs
- DateTimeUtil.cs
- UTF32Encoding.cs
- HttpsHostedTransportConfiguration.cs
- SqlMethodAttribute.cs
- KoreanLunisolarCalendar.cs
- LicenseManager.cs
- SqlInternalConnection.cs
- SlipBehavior.cs
- DefaultValidator.cs
- CodeArrayCreateExpression.cs
- Int32RectValueSerializer.cs
- DataRelation.cs
- XmlAnyElementAttribute.cs
- PaperSize.cs
- MenuItemBinding.cs