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
- DbException.cs
- LinqDataSourceView.cs
- SqlCacheDependencySection.cs
- ProxyWebPartManager.cs
- MemberMaps.cs
- Point3DCollection.cs
- Graphics.cs
- TransactionState.cs
- DictationGrammar.cs
- SocketAddress.cs
- HelpInfo.cs
- HttpChannelHelper.cs
- KeyValuePair.cs
- TemplatePagerField.cs
- DiagnosticsConfiguration.cs
- Rect3D.cs
- CapabilitiesSection.cs
- ProtocolsConfigurationHandler.cs
- PropertyGeneratedEventArgs.cs
- ThreadLocal.cs
- EventlogProvider.cs
- QuaternionAnimation.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ResetableIterator.cs
- TableStyle.cs
- RegexRunnerFactory.cs
- SectionVisual.cs
- FontFamilyValueSerializer.cs
- ObjectViewListener.cs
- TreeSet.cs
- PrintEvent.cs
- RemotingConfigParser.cs
- IpcChannelHelper.cs
- HtmlElement.cs
- HistoryEventArgs.cs
- SqlConnectionFactory.cs
- ToolBarDesigner.cs
- WebPartCatalogCloseVerb.cs
- TemplateContainer.cs
- HostedHttpContext.cs
- DynamicRendererThreadManager.cs
- ToolStripCodeDomSerializer.cs
- PropertyPathConverter.cs
- CryptoConfig.cs
- ColumnProvider.cs
- WebPartPersonalization.cs
- BufferedGraphics.cs
- WebRequestModuleElementCollection.cs
- DbDataReader.cs
- FormatConvertedBitmap.cs
- TextDecorationLocationValidation.cs
- MemoryMappedViewStream.cs
- TargetConverter.cs
- XmlCDATASection.cs
- ApplicationId.cs
- SrgsItemList.cs
- NamedPipeTransportSecurityElement.cs
- Condition.cs
- SequentialOutput.cs
- DataSet.cs
- UserMapPath.cs
- DesigntimeLicenseContextSerializer.cs
- SeekableMessageNavigator.cs
- LazyTextWriterCreator.cs
- LinqDataSourceHelper.cs
- ImportCatalogPart.cs
- WebSysDescriptionAttribute.cs
- CommandID.cs
- GenericPrincipal.cs
- FormClosedEvent.cs
- HMACMD5.cs
- _OverlappedAsyncResult.cs
- GeneralTransform3DGroup.cs
- RecognizedAudio.cs
- InvalidWMPVersionException.cs
- TemplatedAdorner.cs
- DbDataAdapter.cs
- Parser.cs
- TraceRecords.cs
- CommandLibraryHelper.cs
- MouseEventArgs.cs
- Version.cs
- CodeNamespaceImportCollection.cs
- ImpersonateTokenRef.cs
- DiscreteKeyFrames.cs
- XmlCharacterData.cs
- LockCookie.cs
- LoginName.cs
- SystemNetworkInterface.cs
- MailDefinition.cs
- SignatureToken.cs
- ConstructorExpr.cs
- StyleXamlParser.cs
- StringStorage.cs
- XamlWriter.cs
- ParamArrayAttribute.cs
- UTF8Encoding.cs
- JoinGraph.cs
- RightsManagementUser.cs
- StorageInfo.cs