Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / MergablePropertyAttribute.cs / 1 / MergablePropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class MergablePropertyAttribute : Attribute { ///Specifies that /// this property can be combined with properties belonging to /// other objects in a properties window. ////// public static readonly MergablePropertyAttribute Yes = new MergablePropertyAttribute(true); ////// Specifies that a property can be combined with properties belonging to other /// objects in a properties window. This ///field is read-only. /// /// public static readonly MergablePropertyAttribute No = new MergablePropertyAttribute(false); ////// Specifies that a property cannot be combined with properties belonging to /// other objects in a properties window. This ///field is /// read-only. /// /// public static readonly MergablePropertyAttribute Default = Yes; private bool allowMerge; ////// Specifies the default value, which is ///, that is a property can be combined with /// properties belonging to other objects in a properties window. This field is read-only. /// /// public MergablePropertyAttribute(bool allowMerge) { this.allowMerge = allowMerge; } ////// Initializes a new instance of the ////// class. /// /// public bool AllowMerge { get { return allowMerge; } } ////// Gets a value indicating whether this /// property can be combined with properties belonging to other objects in a /// properties window. /// ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } MergablePropertyAttribute other = obj as MergablePropertyAttribute; return other != null && other.AllowMerge == this.allowMerge; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// ///public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PingReply.cs
- EntityViewGenerationAttribute.cs
- NetTcpSecurity.cs
- StorageEntitySetMapping.cs
- FixedDocumentPaginator.cs
- HtmlCalendarAdapter.cs
- _OSSOCK.cs
- ScriptResourceInfo.cs
- StrokeNodeData.cs
- KeyboardDevice.cs
- Size3D.cs
- PageSetupDialog.cs
- SymDocumentType.cs
- LoginCancelEventArgs.cs
- HelpKeywordAttribute.cs
- RelationshipConverter.cs
- Int64AnimationUsingKeyFrames.cs
- CodeDomSerializerException.cs
- Line.cs
- _SingleItemRequestCache.cs
- SettingsPropertyWrongTypeException.cs
- WebPartVerb.cs
- Subset.cs
- Size3D.cs
- DesignerValidationSummaryAdapter.cs
- PeerNameResolver.cs
- AccessDataSource.cs
- ApplicationCommands.cs
- ListBoxItem.cs
- X509AsymmetricSecurityKey.cs
- HttpRawResponse.cs
- ConfigXmlReader.cs
- Typeface.cs
- MemoryFailPoint.cs
- Point3DCollection.cs
- Cursor.cs
- EmptyEnumerator.cs
- CopyAttributesAction.cs
- ResXBuildProvider.cs
- ObjectAnimationBase.cs
- BamlLocalizer.cs
- SpeechSeg.cs
- CheckoutException.cs
- XslVisitor.cs
- xmlsaver.cs
- DataTableExtensions.cs
- OdbcFactory.cs
- ConfigurationValidatorBase.cs
- FilterableAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- PowerModeChangedEventArgs.cs
- WebPartMinimizeVerb.cs
- RefreshEventArgs.cs
- TextSimpleMarkerProperties.cs
- MethodRental.cs
- Decoder.cs
- Request.cs
- ListBoxItemAutomationPeer.cs
- CodeBinaryOperatorExpression.cs
- ExpressionVisitorHelpers.cs
- DelegatingConfigHost.cs
- SqlXmlStorage.cs
- User.cs
- XmlSerializerNamespaces.cs
- RectAnimation.cs
- XmlDataDocument.cs
- StringFormat.cs
- DefaultHttpHandler.cs
- ReferentialConstraintRoleElement.cs
- HotCommands.cs
- XmlILAnnotation.cs
- PageParser.cs
- ReservationNotFoundException.cs
- NCryptNative.cs
- NullRuntimeConfig.cs
- TabControl.cs
- Console.cs
- MetadataFile.cs
- SimpleHandlerBuildProvider.cs
- ConnectionStringsExpressionBuilder.cs
- AttributeTableBuilder.cs
- StateWorkerRequest.cs
- RadialGradientBrush.cs
- TypeDescriptionProvider.cs
- ToolStripMenuItemCodeDomSerializer.cs
- UpWmlMobileTextWriter.cs
- SyndicationLink.cs
- CryptoApi.cs
- UriTemplateHelpers.cs
- CreateUserWizardAutoFormat.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- RtfToken.cs
- AuthenticationConfig.cs
- DateTimeSerializationSection.cs
- LinqDataSource.cs
- DataSourceXmlTextReader.cs
- DataServiceProcessingPipeline.cs
- RootBrowserWindowProxy.cs
- EventLogConfiguration.cs
- TableLayout.cs