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
- SimpleWebHandlerParser.cs
- HTMLTextWriter.cs
- IntPtr.cs
- Timer.cs
- BinaryObjectWriter.cs
- WebControlParameterProxy.cs
- KeyTimeConverter.cs
- bindurihelper.cs
- DataBinding.cs
- PreviewKeyDownEventArgs.cs
- DoubleAnimationBase.cs
- CssStyleCollection.cs
- DrawingBrush.cs
- GenericEnumerator.cs
- ScrollProperties.cs
- TextDataBindingHandler.cs
- TextSelectionProcessor.cs
- VerifyHashRequest.cs
- UserNamePasswordServiceCredential.cs
- CalendarButton.cs
- FlowNode.cs
- SystemNetHelpers.cs
- ResourceCategoryAttribute.cs
- Queue.cs
- DataQuery.cs
- VectorCollection.cs
- SaveFileDialog.cs
- UriTemplateClientFormatter.cs
- ScriptingSectionGroup.cs
- PresentationTraceSources.cs
- PingReply.cs
- IssuedTokenServiceElement.cs
- WriteTimeStream.cs
- RegexNode.cs
- InputMethod.cs
- ImageListStreamer.cs
- ComponentTray.cs
- _TransmitFileOverlappedAsyncResult.cs
- BaseTemplateBuildProvider.cs
- ListenerPerfCounters.cs
- DataList.cs
- SmiRequestExecutor.cs
- ElementUtil.cs
- EventLog.cs
- AppDomainAttributes.cs
- MSAAEventDispatcher.cs
- ObjectDataSourceEventArgs.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- DataRowExtensions.cs
- CfgParser.cs
- HttpChannelHelper.cs
- Convert.cs
- WaitForChangedResult.cs
- KeyboardEventArgs.cs
- SchemaType.cs
- InputLanguageProfileNotifySink.cs
- _BufferOffsetSize.cs
- RichTextBoxConstants.cs
- X509IssuerSerialKeyIdentifierClause.cs
- InternalCache.cs
- SecurityKeyIdentifier.cs
- Int64KeyFrameCollection.cs
- AssemblyAttributesGoHere.cs
- InputScopeConverter.cs
- CfgParser.cs
- DataServiceContext.cs
- DataServiceRequestException.cs
- autovalidator.cs
- Pointer.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PasswordRecovery.cs
- RightsManagementEncryptionTransform.cs
- ClientSponsor.cs
- RowToFieldTransformer.cs
- PageThemeBuildProvider.cs
- KeyEvent.cs
- PostBackOptions.cs
- UIElement.cs
- DbProviderManifest.cs
- ProtectedProviderSettings.cs
- TransactedBatchingElement.cs
- Assembly.cs
- CornerRadiusConverter.cs
- Quack.cs
- Translator.cs
- DesignerVerb.cs
- _TimerThread.cs
- DictionaryBase.cs
- grammarelement.cs
- TagNameToTypeMapper.cs
- CqlIdentifiers.cs
- ConnectionManagementElementCollection.cs
- OracleColumn.cs
- PerformanceCounterManager.cs
- ApplicationFileParser.cs
- MemberHolder.cs
- DBNull.cs
- LinkButton.cs
- UrlMappingCollection.cs
- ResolvedKeyFrameEntry.cs