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
- ColorKeyFrameCollection.cs
- OdbcDataAdapter.cs
- Transform3DGroup.cs
- SqlMethodTransformer.cs
- InvariantComparer.cs
- FixedSchema.cs
- EndpointDispatcher.cs
- ParserContext.cs
- TcpAppDomainProtocolHandler.cs
- InheritanceAttribute.cs
- AccessedThroughPropertyAttribute.cs
- XPathAncestorQuery.cs
- MsmqIntegrationValidationBehavior.cs
- ExtensionSurface.cs
- Authorization.cs
- ColorContextHelper.cs
- WindowsTab.cs
- Help.cs
- While.cs
- DeleteWorkflowOwnerCommand.cs
- AnimatedTypeHelpers.cs
- RewritingPass.cs
- UncommonField.cs
- indexingfiltermarshaler.cs
- TabControl.cs
- X509IssuerSerialKeyIdentifierClause.cs
- System.Data.OracleClient_BID.cs
- RegexRunnerFactory.cs
- NavigationFailedEventArgs.cs
- MatcherBuilder.cs
- SimpleApplicationHost.cs
- ColumnHeader.cs
- CopyOnWriteList.cs
- DLinqAssociationProvider.cs
- HtmlInputSubmit.cs
- SoapTypeAttribute.cs
- FunctionNode.cs
- DataControlFieldCell.cs
- XmlElementAttributes.cs
- StatusCommandUI.cs
- Attributes.cs
- WebPartsPersonalizationAuthorization.cs
- TabPanel.cs
- TdsParser.cs
- ObjectView.cs
- ListViewTableRow.cs
- PeerToPeerException.cs
- GregorianCalendar.cs
- Resources.Designer.cs
- ApplicationInfo.cs
- ConfigurationLockCollection.cs
- QueryCursorEventArgs.cs
- PlainXmlWriter.cs
- GraphicsPathIterator.cs
- StringArrayConverter.cs
- KeyedQueue.cs
- UnknownWrapper.cs
- COM2Properties.cs
- RadioButtonStandardAdapter.cs
- oledbconnectionstring.cs
- RegionIterator.cs
- DataGridViewComboBoxColumn.cs
- SqlInternalConnection.cs
- ApplicationDirectoryMembershipCondition.cs
- SerializationInfoEnumerator.cs
- InterleavedZipPartStream.cs
- DataGridViewCellStyle.cs
- BatchWriter.cs
- StringHelper.cs
- PathFigureCollectionConverter.cs
- UpDownEvent.cs
- AuthenticationModulesSection.cs
- Module.cs
- ListViewItemCollectionEditor.cs
- CallContext.cs
- StrokeDescriptor.cs
- TextBoxRenderer.cs
- _NegotiateClient.cs
- RenderData.cs
- DomainUpDown.cs
- DesignerTransaction.cs
- TreeChangeInfo.cs
- ListViewItemSelectionChangedEvent.cs
- GroupBox.cs
- ListenerAdapterBase.cs
- DateTimeConverter2.cs
- ComboBoxItem.cs
- XmlSchemaValidationException.cs
- WindowsTooltip.cs
- StandardToolWindows.cs
- RecommendedAsConfigurableAttribute.cs
- DragDrop.cs
- ComponentCollection.cs
- MessageDroppedTraceRecord.cs
- CodeNamespaceCollection.cs
- ActivityWithResultValueSerializer.cs
- Delegate.cs
- CheckBox.cs
- PointConverter.cs
- SmtpLoginAuthenticationModule.cs