Code:
/ DotNET / DotNET / 8.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
- DocumentOrderComparer.cs
- Calendar.cs
- XmlNamedNodeMap.cs
- MinMaxParagraphWidth.cs
- ThemeDirectoryCompiler.cs
- AutoScrollExpandMessageFilter.cs
- SmtpNegotiateAuthenticationModule.cs
- DocumentViewerAutomationPeer.cs
- DataGridViewLinkColumn.cs
- SimpleBitVector32.cs
- BaseDataList.cs
- ConfigurationManagerHelper.cs
- ValidationErrorEventArgs.cs
- BasicExpressionVisitor.cs
- BoolLiteral.cs
- OdbcInfoMessageEvent.cs
- FacetDescriptionElement.cs
- BitmapCodecInfoInternal.cs
- ClientTargetCollection.cs
- BaseConfigurationRecord.cs
- StringInfo.cs
- DataRowView.cs
- EmbeddedMailObjectsCollection.cs
- CodeIdentifiers.cs
- ServiceManager.cs
- Style.cs
- followingsibling.cs
- Soap12ProtocolImporter.cs
- HierarchicalDataBoundControl.cs
- TypeRefElement.cs
- NativeMethods.cs
- Decimal.cs
- Lookup.cs
- CryptoStream.cs
- WorkflowMarkupElementEventArgs.cs
- InsufficientMemoryException.cs
- ArgumentNullException.cs
- EmptyImpersonationContext.cs
- DataGridViewColumnCollection.cs
- WebPartMenu.cs
- PageThemeParser.cs
- BuildProvidersCompiler.cs
- DynamicQueryableWrapper.cs
- PolyLineSegmentFigureLogic.cs
- QuotedPrintableStream.cs
- ProjectionCamera.cs
- InstancePersistenceCommand.cs
- PassportAuthenticationModule.cs
- SystemInfo.cs
- ToolBarButtonClickEvent.cs
- Rect3DValueSerializer.cs
- SinglePhaseEnlistment.cs
- Send.cs
- PackWebResponse.cs
- SystemNetHelpers.cs
- NetNamedPipeBinding.cs
- ToolZone.cs
- Activity.cs
- HttpContextWrapper.cs
- DataConnectionHelper.cs
- PrintDocument.cs
- FontInfo.cs
- FixedTextContainer.cs
- CdpEqualityComparer.cs
- Tokenizer.cs
- FlowchartSizeFeature.cs
- BitmapEffectDrawingContent.cs
- ConnectionsZoneAutoFormat.cs
- ListChangedEventArgs.cs
- SoapObjectReader.cs
- BindingExpressionUncommonField.cs
- ReaderContextStackData.cs
- BooleanAnimationBase.cs
- AdjustableArrowCap.cs
- XDRSchema.cs
- URLMembershipCondition.cs
- MultiTrigger.cs
- NotSupportedException.cs
- OdbcCommand.cs
- TextChangedEventArgs.cs
- SoapClientProtocol.cs
- ISAPIWorkerRequest.cs
- IItemContainerGenerator.cs
- AdornerHitTestResult.cs
- Types.cs
- EventLogPropertySelector.cs
- DnsEndpointIdentity.cs
- FlowDocumentPaginator.cs
- WebZone.cs
- PeerHopCountAttribute.cs
- GACIdentityPermission.cs
- _NegotiateClient.cs
- ToolStripRendererSwitcher.cs
- XPathAxisIterator.cs
- Literal.cs
- PersonalizableAttribute.cs
- EventMap.cs
- ExpressionConverter.cs
- PngBitmapEncoder.cs
- RtfToken.cs