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
- METAHEADER.cs
- RenderData.cs
- DependencyPropertyDescriptor.cs
- ResourceBinder.cs
- MediaElementAutomationPeer.cs
- XamlInt32CollectionSerializer.cs
- TdsRecordBufferSetter.cs
- GenericEnumConverter.cs
- OdbcInfoMessageEvent.cs
- HttpCacheVary.cs
- DataViewManager.cs
- BypassElement.cs
- RulePatternOps.cs
- TargetParameterCountException.cs
- TextPattern.cs
- XPathNavigatorReader.cs
- RuntimeConfig.cs
- BasicExpandProvider.cs
- DataGridPageChangedEventArgs.cs
- ContentFilePart.cs
- SoapProcessingBehavior.cs
- RuntimeResourceSet.cs
- ObjectHelper.cs
- CryptoHelper.cs
- ToolConsole.cs
- CaseInsensitiveComparer.cs
- DrawingState.cs
- CatalogPartChrome.cs
- WebServiceErrorEvent.cs
- StringUtil.cs
- XmlQuerySequence.cs
- TogglePatternIdentifiers.cs
- Convert.cs
- DesignerView.xaml.cs
- SchemaDeclBase.cs
- HtmlTextBoxAdapter.cs
- PackagePartCollection.cs
- XmlSerializationWriter.cs
- CustomValidator.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SimpleBitVector32.cs
- ThreadAttributes.cs
- EnumType.cs
- GridViewSortEventArgs.cs
- XmlUrlResolver.cs
- Compress.cs
- FlowDocumentScrollViewer.cs
- HTTPNotFoundHandler.cs
- GridViewColumn.cs
- MetadataArtifactLoaderFile.cs
- PlainXmlWriter.cs
- XmlSchemaElement.cs
- TextServicesPropertyRanges.cs
- SQLConvert.cs
- SqlCacheDependencySection.cs
- RightsManagementEncryptionTransform.cs
- BitmapInitialize.cs
- HuffmanTree.cs
- InheritanceService.cs
- TemplateKeyConverter.cs
- X509CertificateInitiatorServiceCredential.cs
- BinaryUtilClasses.cs
- TableLayoutRowStyleCollection.cs
- XmlTextReaderImplHelpers.cs
- ContentTextAutomationPeer.cs
- UnsafeNativeMethodsTablet.cs
- AssociatedControlConverter.cs
- Size3D.cs
- VectorAnimationUsingKeyFrames.cs
- LocalizableAttribute.cs
- Message.cs
- XmlCustomFormatter.cs
- TableNameAttribute.cs
- ExpandCollapseProviderWrapper.cs
- TraceUtility.cs
- HtmlInputImage.cs
- AssemblyNameProxy.cs
- XmlSerializerSection.cs
- BStrWrapper.cs
- AsyncCompletedEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- Variable.cs
- FullTextState.cs
- ConnectionManagementElementCollection.cs
- InvokeMethodActivityDesigner.cs
- TraceShell.cs
- ObjectNotFoundException.cs
- XmlUrlEditor.cs
- XmlSchemaObjectTable.cs
- base64Transforms.cs
- InternalBase.cs
- JsonClassDataContract.cs
- DataObject.cs
- RubberbandSelector.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- PersianCalendar.cs
- HttpListenerResponse.cs
- ClientBuildManagerCallback.cs
- WebHttpEndpointElement.cs
- Listbox.cs