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
- AtomParser.cs
- SystemDropShadowChrome.cs
- DataGridColumnCollectionEditor.cs
- SoapTypeAttribute.cs
- SqlDataSource.cs
- CommandDesigner.cs
- ButtonChrome.cs
- BindingManagerDataErrorEventArgs.cs
- OneOfScalarConst.cs
- DbProviderFactories.cs
- Composition.cs
- DynamicPropertyReader.cs
- WebPartConnectionsConfigureVerb.cs
- EditorPartDesigner.cs
- EncoderNLS.cs
- CqlIdentifiers.cs
- OrCondition.cs
- Publisher.cs
- PathGradientBrush.cs
- DeviceContexts.cs
- XmlRawWriterWrapper.cs
- XmlTextReaderImpl.cs
- baseshape.cs
- ChannelCredentials.cs
- ConfigurationHandlersInstallComponent.cs
- SimpleTextLine.cs
- CharUnicodeInfo.cs
- PathTooLongException.cs
- SqlClientWrapperSmiStreamChars.cs
- InputBinder.cs
- MultiByteCodec.cs
- TextElementCollectionHelper.cs
- MustUnderstandBehavior.cs
- DefaultAsyncDataDispatcher.cs
- FieldNameLookup.cs
- EmptyEnumerator.cs
- DelegateTypeInfo.cs
- UIElementCollection.cs
- Misc.cs
- RegularExpressionValidator.cs
- OrderingExpression.cs
- Exceptions.cs
- Timer.cs
- Comparer.cs
- lengthconverter.cs
- SoapRpcMethodAttribute.cs
- PerformanceCountersElement.cs
- EnumUnknown.cs
- SortedSet.cs
- NumberSubstitution.cs
- GridViewCommandEventArgs.cs
- PropertyItemInternal.cs
- ToolStripDropDownClosedEventArgs.cs
- TextBoxBase.cs
- ProfileBuildProvider.cs
- VisualBrush.cs
- WrapPanel.cs
- MenuCommand.cs
- EpmContentSerializerBase.cs
- ModifiableIteratorCollection.cs
- SineEase.cs
- DataGridItemCollection.cs
- DataSourceProvider.cs
- NameSpaceExtractor.cs
- RegistryKey.cs
- CompressEmulationStream.cs
- MatrixConverter.cs
- SqlTypeSystemProvider.cs
- UndoManager.cs
- ArglessEventHandlerProxy.cs
- InfoCardRSACryptoProvider.cs
- InternalRelationshipCollection.cs
- PageBuildProvider.cs
- DataGridCell.cs
- CopyNamespacesAction.cs
- HashHelper.cs
- ChannelManager.cs
- SharedPersonalizationStateInfo.cs
- EntityDataSourceQueryBuilder.cs
- XmlSerializerNamespaces.cs
- NameSpaceExtractor.cs
- WebPageTraceListener.cs
- TextBoxRenderer.cs
- LinkTarget.cs
- CodeCommentStatement.cs
- ELinqQueryState.cs
- OutOfMemoryException.cs
- SQLBinary.cs
- ParameterCollection.cs
- NonceToken.cs
- Size3D.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- HideDisabledControlAdapter.cs
- RuntimeEnvironment.cs
- Point.cs
- StyleSheetDesigner.cs
- TouchFrameEventArgs.cs
- TextBreakpoint.cs
- DataControlPagerLinkButton.cs
- FlowchartDesigner.xaml.cs