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
- __ComObject.cs
- FullTextLine.cs
- QueryPageSettingsEventArgs.cs
- SystemIPAddressInformation.cs
- InvalidTimeZoneException.cs
- WebUtil.cs
- InvalidPipelineStoreException.cs
- VisualTreeUtils.cs
- ZipIOFileItemStream.cs
- TokenFactoryFactory.cs
- HttpServerUtilityBase.cs
- OdbcInfoMessageEvent.cs
- ZeroOpNode.cs
- Transform3DGroup.cs
- DbProviderFactories.cs
- RadioButtonList.cs
- InstanceData.cs
- HttpServerVarsCollection.cs
- Freezable.cs
- Model3D.cs
- NegationPusher.cs
- HyperLinkDataBindingHandler.cs
- CSharpCodeProvider.cs
- TextSpanModifier.cs
- Comparer.cs
- Executor.cs
- MessageSecurityProtocolFactory.cs
- DrawingContextWalker.cs
- ToolStripArrowRenderEventArgs.cs
- SqlMethodTransformer.cs
- CodeCompileUnit.cs
- IndexedWhereQueryOperator.cs
- TimeStampChecker.cs
- QuaternionConverter.cs
- MarshalDirectiveException.cs
- Clause.cs
- MailDefinition.cs
- Html32TextWriter.cs
- MethodSignatureGenerator.cs
- LongCountAggregationOperator.cs
- UndoManager.cs
- TraceLog.cs
- StructuredCompositeActivityDesigner.cs
- JournalNavigationScope.cs
- EffectiveValueEntry.cs
- Fonts.cs
- AssemblyGen.cs
- Journaling.cs
- NavigationProperty.cs
- __ConsoleStream.cs
- ValueConversionAttribute.cs
- SessionSwitchEventArgs.cs
- HtmlInputCheckBox.cs
- CodeParameterDeclarationExpressionCollection.cs
- Color.cs
- ArrayConverter.cs
- CodeSnippetExpression.cs
- LoginView.cs
- NativeMethods.cs
- LookupBindingPropertiesAttribute.cs
- _SslState.cs
- XsdDateTime.cs
- MaskDescriptors.cs
- TargetParameterCountException.cs
- SHA1.cs
- ObjectQuery_EntitySqlExtensions.cs
- AppDomainShutdownMonitor.cs
- ValidationError.cs
- OdbcPermission.cs
- ConfigXmlWhitespace.cs
- UpDownBase.cs
- WebPartDesigner.cs
- ECDsaCng.cs
- mediaclock.cs
- OpCodes.cs
- NullExtension.cs
- CustomCredentialPolicy.cs
- Point3DIndependentAnimationStorage.cs
- SerializableAuthorizationContext.cs
- IsolatedStorageFile.cs
- DirectionalLight.cs
- EndpointAddress.cs
- DataGrid.cs
- PerfService.cs
- ValidationPropertyAttribute.cs
- IndexedWhereQueryOperator.cs
- PolicyUnit.cs
- PropertyInfoSet.cs
- RepeaterCommandEventArgs.cs
- StateMachineDesignerPaint.cs
- KeyGestureValueSerializer.cs
- CreateUserErrorEventArgs.cs
- DataGridViewComboBoxCell.cs
- RpcAsyncResult.cs
- Stopwatch.cs
- BaseAppDomainProtocolHandler.cs
- ThemeDirectoryCompiler.cs
- MonitorWrapper.cs
- ControlValuePropertyAttribute.cs