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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DSASignatureFormatter.cs
- TreeNodeSelectionProcessor.cs
- StreamUpdate.cs
- DescendentsWalkerBase.cs
- BaseParser.cs
- GcHandle.cs
- CommonServiceBehaviorElement.cs
- DbConnectionStringCommon.cs
- SqlTransaction.cs
- rsa.cs
- WebPartConnectionCollection.cs
- CalendarDataBindingHandler.cs
- MaterialGroup.cs
- DecoderFallbackWithFailureFlag.cs
- AutoScrollHelper.cs
- CodeConditionStatement.cs
- UIElementAutomationPeer.cs
- Utils.cs
- SQLBinary.cs
- TcpServerChannel.cs
- AttachmentService.cs
- TextViewBase.cs
- DependencyObjectPropertyDescriptor.cs
- TimeSpanStorage.cs
- CqlBlock.cs
- EventManager.cs
- Vector3DValueSerializer.cs
- CorrelationHandle.cs
- GuidConverter.cs
- InitializerFacet.cs
- ItemCheckedEvent.cs
- WebPartCloseVerb.cs
- EventManager.cs
- TCPClient.cs
- Command.cs
- VisualStyleInformation.cs
- AbstractExpressions.cs
- ProviderCommandInfoUtils.cs
- WindowVisualStateTracker.cs
- ListManagerBindingsCollection.cs
- UnmanagedBitmapWrapper.cs
- SqlMetaData.cs
- EventWaitHandle.cs
- ComponentManagerBroker.cs
- EncoderBestFitFallback.cs
- IconConverter.cs
- RecognizedPhrase.cs
- TrackingStringDictionary.cs
- NonClientArea.cs
- Journaling.cs
- System.Data_BID.cs
- ComponentEditorPage.cs
- GetWinFXPath.cs
- MenuItemBinding.cs
- CheckBoxPopupAdapter.cs
- PartialTrustVisibleAssemblyCollection.cs
- DummyDataSource.cs
- SoapExtensionStream.cs
- FixedPageAutomationPeer.cs
- DrawingAttributesDefaultValueFactory.cs
- HttpFileCollection.cs
- SchemaCollectionCompiler.cs
- CryptoApi.cs
- ReferenceConverter.cs
- XPathSingletonIterator.cs
- PersonalizationProviderHelper.cs
- ScrollProperties.cs
- Utils.cs
- FacetDescriptionElement.cs
- UITypeEditors.cs
- TemplateComponentConnector.cs
- FixedSOMContainer.cs
- HtmlEmptyTagControlBuilder.cs
- EnumUnknown.cs
- AbstractSvcMapFileLoader.cs
- OperatingSystem.cs
- GenerateScriptTypeAttribute.cs
- HierarchicalDataSourceControl.cs
- GridViewRowCollection.cs
- MemberJoinTreeNode.cs
- TypeLibConverter.cs
- CodeTypeDeclaration.cs
- SqlWriter.cs
- KerberosReceiverSecurityToken.cs
- RequestNavigateEventArgs.cs
- UriTemplateClientFormatter.cs
- Typography.cs
- ToolTip.cs
- EmptyStringExpandableObjectConverter.cs
- XmlDataImplementation.cs
- ClockGroup.cs
- CodeThrowExceptionStatement.cs
- RayMeshGeometry3DHitTestResult.cs
- HttpCookie.cs
- SafeCryptoHandles.cs
- WpfPayload.cs
- DataException.cs
- HttpCachePolicy.cs
- ToolboxDataAttribute.cs
- ContainerCodeDomSerializer.cs