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
- SourceExpressionException.cs
- InfoCardRSACryptoProvider.cs
- Lease.cs
- ConfigurationValue.cs
- InternalPermissions.cs
- TransactionalPackage.cs
- AdapterUtil.cs
- ToolStripItemClickedEventArgs.cs
- ConstrainedDataObject.cs
- ViewSimplifier.cs
- _PooledStream.cs
- SafeNativeMethods.cs
- XmlSchemaIdentityConstraint.cs
- LogLogRecordHeader.cs
- BaseAppDomainProtocolHandler.cs
- GroupQuery.cs
- DistributedTransactionPermission.cs
- WeakReferenceEnumerator.cs
- WindowsRebar.cs
- externdll.cs
- PolicyValidator.cs
- SharedDp.cs
- DataRecordInternal.cs
- SerializationInfoEnumerator.cs
- ISessionStateStore.cs
- XmlQueryOutput.cs
- TagMapInfo.cs
- FontDriver.cs
- DataListItemCollection.cs
- AbandonedMutexException.cs
- Pick.cs
- ScriptingAuthenticationServiceSection.cs
- XmlDictionaryString.cs
- NestedContainer.cs
- SchemaTableColumn.cs
- AssemblyBuilder.cs
- SettingsPropertyWrongTypeException.cs
- ProviderConnectionPointCollection.cs
- HandlerBase.cs
- Section.cs
- ReliableOutputSessionChannel.cs
- SystemEvents.cs
- ArrayWithOffset.cs
- InkSerializer.cs
- Tool.cs
- DataGridColumnReorderingEventArgs.cs
- XPathQilFactory.cs
- MouseCaptureWithinProperty.cs
- Zone.cs
- TextRenderer.cs
- ConnectionInterfaceCollection.cs
- CustomErrorsSection.cs
- MsdtcWrapper.cs
- SimpleRecyclingCache.cs
- SkewTransform.cs
- CapabilitiesSection.cs
- OleDbInfoMessageEvent.cs
- counter.cs
- FileUpload.cs
- _LocalDataStore.cs
- Resources.Designer.cs
- Stylesheet.cs
- DispatcherSynchronizationContext.cs
- DataColumnMapping.cs
- GroupedContextMenuStrip.cs
- PersonalizationProviderCollection.cs
- CompilerGeneratedAttribute.cs
- SqlCacheDependency.cs
- SimpleWebHandlerParser.cs
- SecurityDescriptor.cs
- ListViewInsertedEventArgs.cs
- PageMediaType.cs
- _SecureChannel.cs
- TextEffect.cs
- AnnotationComponentChooser.cs
- NumberFunctions.cs
- BinaryReader.cs
- Cursor.cs
- ServicePointManager.cs
- documentsequencetextview.cs
- ExclusiveTcpListener.cs
- StringUtil.cs
- TemplateBindingExpression.cs
- X509CertificateRecipientClientCredential.cs
- SqlPersonalizationProvider.cs
- DecoderReplacementFallback.cs
- ValidationErrorCollection.cs
- Splitter.cs
- SamlAuthorityBinding.cs
- EdmProviderManifest.cs
- _ContextAwareResult.cs
- BindingSource.cs
- DataGridViewColumnTypeEditor.cs
- Automation.cs
- ModelPropertyImpl.cs
- ObjectQuery.cs
- WebPartAuthorizationEventArgs.cs
- StateMachine.cs
- NonPrimarySelectionGlyph.cs
- SspiSafeHandles.cs