Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XamlDesignerSerializationManager.cs
- BitStack.cs
- GeneralTransform.cs
- RadialGradientBrush.cs
- figurelengthconverter.cs
- Utils.cs
- DeflateStreamAsyncResult.cs
- HandleCollector.cs
- Config.cs
- CaseInsensitiveHashCodeProvider.cs
- UpdateProgress.cs
- Validator.cs
- NavigationProperty.cs
- EUCJPEncoding.cs
- IndicCharClassifier.cs
- PointLightBase.cs
- GridViewCommandEventArgs.cs
- StickyNote.cs
- SynchronizedDispatch.cs
- Instrumentation.cs
- MultipleViewProviderWrapper.cs
- SqlNotificationRequest.cs
- HttpException.cs
- CrossAppDomainChannel.cs
- BindingCollection.cs
- ThreadNeutralSemaphore.cs
- ImageMapEventArgs.cs
- BlurEffect.cs
- PointLight.cs
- ConfigurationSchemaErrors.cs
- RuleAttributes.cs
- SupportsEventValidationAttribute.cs
- TreeNodeStyle.cs
- DateTimeUtil.cs
- Literal.cs
- OleDbError.cs
- VariableModifiersHelper.cs
- Util.cs
- Symbol.cs
- _FixedSizeReader.cs
- RectKeyFrameCollection.cs
- AvTraceFormat.cs
- Effect.cs
- FixedSOMImage.cs
- StateMachineDesignerPaint.cs
- FileDialog.cs
- ArrayWithOffset.cs
- ContextMarshalException.cs
- ByteConverter.cs
- BackStopAuthenticationModule.cs
- SingleResultAttribute.cs
- GlobalItem.cs
- SqlDataSourceQuery.cs
- MdiWindowListStrip.cs
- DynamicExpression.cs
- PenContexts.cs
- DataError.cs
- ConnectionManagementElementCollection.cs
- Point3D.cs
- MailMessageEventArgs.cs
- XsltOutput.cs
- PeerObject.cs
- Geometry.cs
- Mouse.cs
- UriWriter.cs
- ApplicationCommands.cs
- MouseActionValueSerializer.cs
- LicFileLicenseProvider.cs
- Canvas.cs
- ObjectParameterCollection.cs
- DatagridviewDisplayedBandsData.cs
- ParentUndoUnit.cs
- DtdParser.cs
- ProviderBase.cs
- ListViewInsertionMark.cs
- PrinterUnitConvert.cs
- SoapExtensionStream.cs
- DesignerAttribute.cs
- QueryStringParameter.cs
- FixUp.cs
- BitmapEffectvisualstate.cs
- CommonObjectSecurity.cs
- ConfigurationPermission.cs
- FormatSettings.cs
- NativeMethods.cs
- MouseCaptureWithinProperty.cs
- HtmlHead.cs
- ByteStreamMessageEncoderFactory.cs
- FloaterParaClient.cs
- DataGridCheckBoxColumn.cs
- RubberbandSelector.cs
- DataMemberFieldEditor.cs
- OSFeature.cs
- DrawingVisualDrawingContext.cs
- DbExpressionVisitor_TResultType.cs
- WCFBuildProvider.cs
- ColorConvertedBitmap.cs
- ListCollectionView.cs
- UnsignedPublishLicense.cs
- HttpCapabilitiesEvaluator.cs