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
- RoleManagerSection.cs
- LeftCellWrapper.cs
- ByteStreamGeometryContext.cs
- XhtmlConformanceSection.cs
- WindowsToolbarItemAsMenuItem.cs
- Events.cs
- SecurityTokenRequirement.cs
- SHA256Managed.cs
- UrlMappingCollection.cs
- TextViewBase.cs
- XmlSchemaSimpleTypeUnion.cs
- EventMappingSettingsCollection.cs
- KeyPressEvent.cs
- EntityParameter.cs
- SqlServer2KCompatibilityCheck.cs
- ProtocolsConfigurationHandler.cs
- ClaimComparer.cs
- CheckBoxRenderer.cs
- TableChangeProcessor.cs
- ClusterSafeNativeMethods.cs
- ToolStripPanel.cs
- MetafileHeader.cs
- ScrollChrome.cs
- SettingsAttributeDictionary.cs
- RegistryConfigurationProvider.cs
- JsonServiceDocumentSerializer.cs
- NetTcpBinding.cs
- ContainerTracking.cs
- SqlParameterCollection.cs
- ProviderException.cs
- PassportPrincipal.cs
- AsnEncodedData.cs
- FlowDocumentReader.cs
- TreeBuilder.cs
- ResXResourceWriter.cs
- LinearKeyFrames.cs
- TemplateColumn.cs
- RightsManagementEncryptedStream.cs
- Schema.cs
- BindingExpressionUncommonField.cs
- SizeAnimationUsingKeyFrames.cs
- DesignTimeTemplateParser.cs
- Size3D.cs
- EpmContentSerializerBase.cs
- ShaperBuffers.cs
- XmlSubtreeReader.cs
- FormViewDesigner.cs
- SqlBooleanizer.cs
- GorillaCodec.cs
- SplineKeyFrames.cs
- CheckBox.cs
- FontStretchConverter.cs
- CodeExpressionCollection.cs
- LineInfo.cs
- ValidatingPropertiesEventArgs.cs
- ExpressionWriter.cs
- LicenseContext.cs
- RoleBoolean.cs
- GenericPrincipal.cs
- ComAdminInterfaces.cs
- DialogBaseForm.cs
- DecoderNLS.cs
- ExpressionBuilder.cs
- TextEffectCollection.cs
- RIPEMD160.cs
- SmiMetaData.cs
- DES.cs
- TTSVoice.cs
- SchemaTableColumn.cs
- smtppermission.cs
- ToolStripItem.cs
- DiagnosticsConfiguration.cs
- WebBrowserPermission.cs
- SqlWorkflowInstanceStore.cs
- TokenBasedSetEnumerator.cs
- OutputScope.cs
- OleDbFactory.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- FlowLayoutPanel.cs
- ColumnResizeUndoUnit.cs
- XmlSchemaExternal.cs
- serverconfig.cs
- RegexMatchCollection.cs
- InkCanvasSelection.cs
- PostBackOptions.cs
- SevenBitStream.cs
- Effect.cs
- Latin1Encoding.cs
- DebugHandleTracker.cs
- SaveFileDialog.cs
- SamlAuthorizationDecisionStatement.cs
- ControlIdConverter.cs
- FontCollection.cs
- WindowsScroll.cs
- AnimatedTypeHelpers.cs
- PauseStoryboard.cs
- InfoCardXmlSerializer.cs
- CodeTypeMemberCollection.cs
- SevenBitStream.cs
- WindowsListViewGroupSubsetLink.cs