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
- PagesChangedEventArgs.cs
- RenderDataDrawingContext.cs
- TableRow.cs
- FlowDocumentFormatter.cs
- SafeRegistryHandle.cs
- CheckedPointers.cs
- StringConcat.cs
- CursorConverter.cs
- DPCustomTypeDescriptor.cs
- ConnectionsZone.cs
- ConnectionPoint.cs
- SqlBooleanizer.cs
- BitmapPalettes.cs
- PageContentCollection.cs
- ToolStripDropDownMenu.cs
- InkCollectionBehavior.cs
- ListGeneralPage.cs
- ApplicationActivator.cs
- MenuAutoFormat.cs
- NullReferenceException.cs
- WinFormsSecurity.cs
- FloatUtil.cs
- ToolStripSettings.cs
- DrawingGroup.cs
- MembershipValidatePasswordEventArgs.cs
- GPStream.cs
- MissingMemberException.cs
- MetabaseServerConfig.cs
- FilterException.cs
- XmlSchemaImporter.cs
- BufferAllocator.cs
- WorkflowIdleBehavior.cs
- Matrix.cs
- KeyConstraint.cs
- StylusEventArgs.cs
- SqlDataSourceView.cs
- AncestorChangedEventArgs.cs
- Positioning.cs
- CodeTypeConstructor.cs
- SimpleExpression.cs
- ImportCatalogPart.cs
- DataBindingCollection.cs
- ListViewItemEventArgs.cs
- SeekableReadStream.cs
- QilReplaceVisitor.cs
- QuadraticBezierSegment.cs
- HtmlInputButton.cs
- _AuthenticationState.cs
- GraphicsPath.cs
- AlternationConverter.cs
- SchemaImporter.cs
- CreateParams.cs
- WebPartConnectionsConnectVerb.cs
- DesignConnectionCollection.cs
- ParserExtension.cs
- MissingSatelliteAssemblyException.cs
- JsonDataContract.cs
- MonikerProxyAttribute.cs
- OleDbStruct.cs
- ReturnType.cs
- BufferBuilder.cs
- VideoDrawing.cs
- HttpsChannelFactory.cs
- UIElementParagraph.cs
- SafeLocalAllocation.cs
- Scene3D.cs
- OleAutBinder.cs
- DataGrid.cs
- InstanceData.cs
- CqlWriter.cs
- InputQueue.cs
- PermissionSet.cs
- ConfigurationSectionHelper.cs
- DataTableReaderListener.cs
- TemplateEditingService.cs
- PolyQuadraticBezierSegment.cs
- DocumentViewerConstants.cs
- DockPattern.cs
- propertyentry.cs
- QuinticEase.cs
- UndirectedGraph.cs
- XmlCodeExporter.cs
- RedBlackList.cs
- ClassImporter.cs
- EventInfo.cs
- StringComparer.cs
- Table.cs
- RegexReplacement.cs
- InternalRelationshipCollection.cs
- ContentPlaceHolderDesigner.cs
- Gdiplus.cs
- DataGrid.cs
- WebPartEventArgs.cs
- BuildManager.cs
- DataListItemCollection.cs
- ImageAutomationPeer.cs
- XmlSchemaComplexContentRestriction.cs
- InputScopeNameConverter.cs
- DbConnectionOptions.cs
- XmlDataDocument.cs