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
- ObjectSet.cs
- DataGridViewControlCollection.cs
- AssemblyBuilder.cs
- ServicePointManagerElement.cs
- TraceSection.cs
- ThreadAttributes.cs
- DataRelationCollection.cs
- AttributeCollection.cs
- WindowsSysHeader.cs
- CollectionChangedEventManager.cs
- RadioButtonAutomationPeer.cs
- Matrix.cs
- DetailsViewPageEventArgs.cs
- BCLDebug.cs
- SmiConnection.cs
- ObjectSecurity.cs
- HTTPNotFoundHandler.cs
- ConfigXmlDocument.cs
- SettingsAttributeDictionary.cs
- CodeArrayIndexerExpression.cs
- SqlCacheDependencySection.cs
- StandardCommands.cs
- cookiecontainer.cs
- Cloud.cs
- LayoutEngine.cs
- ArraySortHelper.cs
- _ProxyRegBlob.cs
- StringConverter.cs
- HMACSHA256.cs
- RichTextBoxAutomationPeer.cs
- UnsafeNativeMethods.cs
- WebPartActionVerb.cs
- HtmlTableCellCollection.cs
- BaseCodeDomTreeGenerator.cs
- ClientBuildManager.cs
- ReadOnlyDictionary.cs
- CodeIdentifier.cs
- DataViewManagerListItemTypeDescriptor.cs
- Matrix3D.cs
- FormattedText.cs
- MaskedTextBoxTextEditorDropDown.cs
- XmlSchemaObjectTable.cs
- precedingsibling.cs
- StylusPoint.cs
- DataSvcMapFile.cs
- InfoCardServiceInstallComponent.cs
- UnsafeNetInfoNativeMethods.cs
- ObjRef.cs
- DataBoundControlAdapter.cs
- ProfileParameter.cs
- SubMenuStyleCollectionEditor.cs
- SiteMapDesignerDataSourceView.cs
- WindowsListViewGroupHelper.cs
- ValidationHelper.cs
- DataGridViewCellStateChangedEventArgs.cs
- ObjectItemCollection.cs
- lengthconverter.cs
- HostingEnvironmentSection.cs
- BuildDependencySet.cs
- BindingExpressionBase.cs
- XmlNotation.cs
- MetadataWorkspace.cs
- DataTableReaderListener.cs
- DefaultValueAttribute.cs
- DataServiceQueryProvider.cs
- MsdtcClusterUtils.cs
- LayoutSettings.cs
- TrackingServices.cs
- RadioButtonDesigner.cs
- SessionParameter.cs
- RelationalExpressions.cs
- SupportsEventValidationAttribute.cs
- IsolatedStorageFile.cs
- BufferedStream.cs
- BufferModeSettings.cs
- AssociationTypeEmitter.cs
- Stacktrace.cs
- ZipIOBlockManager.cs
- PointCollection.cs
- OpCellTreeNode.cs
- BasicCellRelation.cs
- BamlRecords.cs
- AdRotator.cs
- RenderOptions.cs
- KnownColorTable.cs
- DateBoldEvent.cs
- XmlSchemaComplexContentRestriction.cs
- FixedSOMTable.cs
- ContractMapping.cs
- DynamicAttribute.cs
- ExpressionNormalizer.cs
- RIPEMD160.cs
- ServicePointManagerElement.cs
- TextServicesCompartmentContext.cs
- SapiGrammar.cs
- CustomValidator.cs
- SqlTypesSchemaImporter.cs
- TransformCollection.cs
- MulticastNotSupportedException.cs
- formatter.cs