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
- AppDomainFactory.cs
- WebPartTransformerCollection.cs
- EventLogInformation.cs
- SettingsProviderCollection.cs
- BitmapEffectDrawingContextWalker.cs
- FormatterServicesNoSerializableCheck.cs
- ComNativeDescriptor.cs
- ResponseBodyWriter.cs
- PrinterResolution.cs
- EntitySetDataBindingList.cs
- MimeParameter.cs
- WinEventQueueItem.cs
- DetailsView.cs
- DataListItem.cs
- _DomainName.cs
- ObfuscationAttribute.cs
- WindowsTreeView.cs
- WebPartTracker.cs
- QueryContinueDragEvent.cs
- ContractsBCL.cs
- ManagedFilter.cs
- StyleSheet.cs
- AttributeSetAction.cs
- ReaderOutput.cs
- httpapplicationstate.cs
- Geometry3D.cs
- ObjectTag.cs
- ScrollEvent.cs
- NativeMethods.cs
- AssociationSet.cs
- DataGridViewComboBoxEditingControl.cs
- SubpageParagraph.cs
- AutomationPatternInfo.cs
- SignatureDescription.cs
- TypeDelegator.cs
- HttpModuleActionCollection.cs
- Literal.cs
- WebRequestModuleElementCollection.cs
- SimpleTypeResolver.cs
- OleServicesContext.cs
- SimpleType.cs
- DesignTimeVisibleAttribute.cs
- HTMLTagNameToTypeMapper.cs
- IdentityHolder.cs
- TCPClient.cs
- Peer.cs
- TextTreeText.cs
- EmptyImpersonationContext.cs
- RawStylusSystemGestureInputReport.cs
- EntityTypeBase.cs
- CompressEmulationStream.cs
- PublisherMembershipCondition.cs
- HTMLTagNameToTypeMapper.cs
- SmiMetaDataProperty.cs
- ReadOnlyHierarchicalDataSource.cs
- HTMLTextWriter.cs
- SmtpClient.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- Emitter.cs
- ContentTextAutomationPeer.cs
- ToolStripScrollButton.cs
- GradientStopCollection.cs
- CommandManager.cs
- ScrollBar.cs
- TimeSpanStorage.cs
- ReplacementText.cs
- XmlElementAttributes.cs
- ParseNumbers.cs
- MobileControlsSectionHelper.cs
- ProtocolsConfigurationEntry.cs
- EntityDataSourceDataSelection.cs
- KeyBinding.cs
- SqlLiftWhereClauses.cs
- codemethodreferenceexpression.cs
- SplitterDesigner.cs
- DataServiceQuery.cs
- Socket.cs
- MethodCallConverter.cs
- TextChangedEventArgs.cs
- BinarySecretSecurityToken.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- PageThemeParser.cs
- _LazyAsyncResult.cs
- OptimizerPatterns.cs
- TextFormatter.cs
- ProcessingInstructionAction.cs
- XamlStream.cs
- UpdatePanel.cs
- WebColorConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- Image.cs
- CacheRequest.cs
- KeyboardDevice.cs
- SiteMapNode.cs
- IChannel.cs
- BindingObserver.cs
- AppDomainManager.cs
- ResourceReferenceExpression.cs
- StringStorage.cs
- DetailsViewInsertedEventArgs.cs