Code:
/ FX-1434 / FX-1434 / 1.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
- AppDomain.cs
- TypeToken.cs
- RegexGroupCollection.cs
- MergeFilterQuery.cs
- MultiTargetingUtil.cs
- DataQuery.cs
- InvalidateEvent.cs
- SizeValueSerializer.cs
- FixedPosition.cs
- CounterSample.cs
- WindowsFont.cs
- XamlBrushSerializer.cs
- WebPartVerbCollection.cs
- SqlAliasesReferenced.cs
- MessageDroppedTraceRecord.cs
- __ConsoleStream.cs
- DataGridViewLinkColumn.cs
- RotationValidation.cs
- NavigationHelper.cs
- MenuAdapter.cs
- Avt.cs
- ObjectHelper.cs
- GridViewRowCollection.cs
- RewritingPass.cs
- ObjectKeyFrameCollection.cs
- SqlCacheDependencyDatabase.cs
- SafeMemoryMappedFileHandle.cs
- UnitControl.cs
- PropertyEmitter.cs
- MethodBody.cs
- CodeEntryPointMethod.cs
- ExceptionRoutedEventArgs.cs
- SkewTransform.cs
- DrawingContextWalker.cs
- GridLengthConverter.cs
- ListControl.cs
- __ComObject.cs
- RayHitTestParameters.cs
- ProcessHostServerConfig.cs
- DelegatingTypeDescriptionProvider.cs
- MonitorWrapper.cs
- ToolStripDropDownClosedEventArgs.cs
- AggregationMinMaxHelpers.cs
- ProtectedProviderSettings.cs
- HandlerFactoryWrapper.cs
- RawMouseInputReport.cs
- TreeSet.cs
- TreeViewImageKeyConverter.cs
- RIPEMD160Managed.cs
- SvcMapFile.cs
- IdleTimeoutMonitor.cs
- RowType.cs
- SerialStream.cs
- DropSource.cs
- SchemaElementDecl.cs
- _Rfc2616CacheValidators.cs
- Evidence.cs
- ServiceThrottlingBehavior.cs
- WebPartDisplayModeCollection.cs
- XpsResourceDictionary.cs
- InstanceContext.cs
- XmlDataCollection.cs
- MetadataArtifactLoaderResource.cs
- PrintPreviewGraphics.cs
- GlyphingCache.cs
- AutoCompleteStringCollection.cs
- SQLDateTimeStorage.cs
- RtfFormatStack.cs
- BitStack.cs
- PriorityRange.cs
- ListSourceHelper.cs
- DropTarget.cs
- RepeaterItemCollection.cs
- InputReferenceExpression.cs
- ComplexBindingPropertiesAttribute.cs
- RemotingConfiguration.cs
- StreamSecurityUpgradeInitiatorBase.cs
- MSHTMLHost.cs
- ActivityMarkupSerializationProvider.cs
- RowToFieldTransformer.cs
- ComponentChangingEvent.cs
- ScaleTransform.cs
- X509RecipientCertificateClientElement.cs
- MLangCodePageEncoding.cs
- Graphics.cs
- DataSourceControl.cs
- ToolboxComponentsCreatedEventArgs.cs
- SineEase.cs
- BasePropertyDescriptor.cs
- DataTableCollection.cs
- ObjectContext.cs
- MinimizableAttributeTypeConverter.cs
- HtmlWindowCollection.cs
- ADMembershipProvider.cs
- XamlSerializer.cs
- FlowDocumentReader.cs
- ObjectComplexPropertyMapping.cs
- RuleSettingsCollection.cs
- WebException.cs
- ValuePatternIdentifiers.cs