Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / MergablePropertyAttribute.cs / 1305376 / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataListCommandEventArgs.cs
- IRCollection.cs
- DataGridViewComponentPropertyGridSite.cs
- MLangCodePageEncoding.cs
- Themes.cs
- PackWebResponse.cs
- AliasGenerator.cs
- HtmlDocument.cs
- SerialPort.cs
- ListControl.cs
- OleDbTransaction.cs
- FormattedText.cs
- FileClassifier.cs
- GraphicsPath.cs
- followingsibling.cs
- NamespaceExpr.cs
- InputScopeManager.cs
- TreeBuilderXamlTranslator.cs
- NamespaceEmitter.cs
- SqlConnectionHelper.cs
- XPathNavigator.cs
- EditorZone.cs
- XmlnsPrefixAttribute.cs
- ContainerActivationHelper.cs
- DesignSurfaceEvent.cs
- CodeCommentStatementCollection.cs
- WmlValidationSummaryAdapter.cs
- Model3DCollection.cs
- KnownColorTable.cs
- PrinterUnitConvert.cs
- CompilerCollection.cs
- TemplateLookupAction.cs
- DataGridCellAutomationPeer.cs
- DateTimeValueSerializerContext.cs
- XmlEncoding.cs
- RequestedSignatureDialog.cs
- SHA1CryptoServiceProvider.cs
- XmlSchemaAttribute.cs
- GeometryModel3D.cs
- RoutedEventConverter.cs
- DataContractJsonSerializerOperationBehavior.cs
- ShaderRenderModeValidation.cs
- WeakReference.cs
- TextElementAutomationPeer.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SafeMILHandle.cs
- oledbconnectionstring.cs
- URLIdentityPermission.cs
- IERequestCache.cs
- WpfWebRequestHelper.cs
- HtmlElementErrorEventArgs.cs
- ViewStateChangedEventArgs.cs
- MimeTypeMapper.cs
- MethodBody.cs
- printdlgexmarshaler.cs
- PrintPageEvent.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ControlBindingsCollection.cs
- ManagedFilter.cs
- CustomSignedXml.cs
- _SslState.cs
- SystemTcpConnection.cs
- DeploymentExceptionMapper.cs
- StrokeDescriptor.cs
- QueryCursorEventArgs.cs
- ExpandedProjectionNode.cs
- FtpWebResponse.cs
- WebMessageEncoderFactory.cs
- OleDbSchemaGuid.cs
- BitmapEffectGroup.cs
- Object.cs
- AlternateView.cs
- PeerMessageDispatcher.cs
- TrackBarRenderer.cs
- RemoteWebConfigurationHostServer.cs
- SimpleBitVector32.cs
- Label.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ServiceNameCollection.cs
- ResXResourceReader.cs
- _ConnectionGroup.cs
- ErrorFormatter.cs
- RankException.cs
- BamlResourceSerializer.cs
- UncommonField.cs
- TriState.cs
- AnnotationService.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- PropertyKey.cs
- HttpCachePolicyElement.cs
- WebPartMenuStyle.cs
- SqlProviderServices.cs
- HttpCookieCollection.cs
- DotExpr.cs
- GcSettings.cs
- Catch.cs
- FixedTextView.cs
- DataControlFieldCell.cs
- ClientSection.cs
- LookupNode.cs