Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }/// Gets whether this attribute is ///by default. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeRemoveEventStatement.cs
- DropTarget.cs
- ErrorWebPart.cs
- RtfFormatStack.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ForeignKeyConstraint.cs
- ToolStripItemDesigner.cs
- SqlConnectionPoolProviderInfo.cs
- HttpInputStream.cs
- TerminatorSinks.cs
- HtmlMeta.cs
- ToggleButton.cs
- PermissionAttributes.cs
- CodeGenerator.cs
- ButtonField.cs
- ScrollItemPatternIdentifiers.cs
- SchemaNamespaceManager.cs
- Math.cs
- InvokeMethod.cs
- QilExpression.cs
- NullableFloatSumAggregationOperator.cs
- DataGridViewColumn.cs
- IntSecurity.cs
- SimpleHandlerFactory.cs
- DataRecord.cs
- WebRequestModulesSection.cs
- Cursor.cs
- DragDropHelper.cs
- SafeArrayRankMismatchException.cs
- StyleCollection.cs
- SocketCache.cs
- ASCIIEncoding.cs
- SqlServices.cs
- HtmlTableCellCollection.cs
- UnmanagedMemoryAccessor.cs
- ConfigXmlAttribute.cs
- ExpressionVisitor.cs
- SystemThemeKey.cs
- SelectionChangedEventArgs.cs
- Base64Decoder.cs
- TransformDescriptor.cs
- DocumentXPathNavigator.cs
- DocumentViewerHelper.cs
- BitmapSource.cs
- TableItemPatternIdentifiers.cs
- _Semaphore.cs
- WorkflowDebuggerSteppingAttribute.cs
- GZipStream.cs
- CharacterBuffer.cs
- HttpsTransportBindingElement.cs
- XamlBuildTaskServices.cs
- OdbcCommandBuilder.cs
- PackagingUtilities.cs
- ClientFormsAuthenticationMembershipProvider.cs
- XslAstAnalyzer.cs
- SchemaSetCompiler.cs
- DerivedKeySecurityTokenStub.cs
- EntityContainerEntitySet.cs
- WebPartsSection.cs
- FontFamilyIdentifier.cs
- CheckPair.cs
- OperationPickerDialog.designer.cs
- Cursors.cs
- ElementNotEnabledException.cs
- URLString.cs
- TextEditor.cs
- XmlSchemaProviderAttribute.cs
- ContextDataSource.cs
- ReliableSessionBindingElementImporter.cs
- CompileLiteralTextParser.cs
- Int16Animation.cs
- LinqDataView.cs
- UnsafeMethods.cs
- Visual.cs
- ErrorFormatterPage.cs
- XmlWellformedWriterHelpers.cs
- Empty.cs
- _SSPISessionCache.cs
- TextFindEngine.cs
- DesignerAttributeInfo.cs
- HasCopySemanticsAttribute.cs
- SemanticResolver.cs
- FormatConvertedBitmap.cs
- WebServiceResponseDesigner.cs
- PlacementWorkspace.cs
- IteratorFilter.cs
- ArithmeticException.cs
- TreeBuilderBamlTranslator.cs
- ColumnMapVisitor.cs
- StackSpiller.cs
- TextEditorLists.cs
- SaveRecipientRequest.cs
- SerializationException.cs
- ApplicationTrust.cs
- MarginCollapsingState.cs
- PerformanceCountersElement.cs
- DesignRelationCollection.cs
- NonParentingControl.cs
- DesignColumnCollection.cs
- CroppedBitmap.cs