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
- SystemIPInterfaceProperties.cs
- PromptEventArgs.cs
- TimelineCollection.cs
- DataGridViewColumnCollection.cs
- XmlConverter.cs
- TableStyle.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Vector3D.cs
- ImageMapEventArgs.cs
- AxisAngleRotation3D.cs
- EventLogger.cs
- DataGridViewSelectedRowCollection.cs
- EntityDataSourceReferenceGroup.cs
- LinqDataSourceSelectEventArgs.cs
- PeerObject.cs
- Int32CAMarshaler.cs
- TimelineClockCollection.cs
- TextTreeDeleteContentUndoUnit.cs
- RoleBoolean.cs
- ReflectionUtil.cs
- HostedController.cs
- LinkLabel.cs
- ProfileGroupSettingsCollection.cs
- UIElementIsland.cs
- ResolveRequestResponseAsyncResult.cs
- DocumentViewerConstants.cs
- QilName.cs
- unsafenativemethodsother.cs
- FamilyMap.cs
- SiteMapDataSourceDesigner.cs
- DocumentOrderQuery.cs
- ControlDesigner.cs
- DataGridViewButtonCell.cs
- CacheChildrenQuery.cs
- DataServiceKeyAttribute.cs
- KeyGestureValueSerializer.cs
- Pair.cs
- ResXResourceWriter.cs
- AppDomainUnloadedException.cs
- Style.cs
- ISO2022Encoding.cs
- DocumentNUp.cs
- ExceptionHelpers.cs
- KeyNameIdentifierClause.cs
- InternalTypeHelper.cs
- ServiceElementCollection.cs
- BufferModesCollection.cs
- WorkflowOperationContext.cs
- XmlValueConverter.cs
- ResolveNameEventArgs.cs
- EventManager.cs
- FillBehavior.cs
- SafeFileHandle.cs
- IteratorDescriptor.cs
- DragDeltaEventArgs.cs
- DataServiceProcessingPipelineEventArgs.cs
- ZipFileInfoCollection.cs
- BitmapEffectCollection.cs
- GenericArgumentsUpdater.cs
- WebBrowserHelper.cs
- XmlAttributes.cs
- StateMachineWorkflow.cs
- BuildDependencySet.cs
- BamlTreeMap.cs
- Grammar.cs
- ConfigXmlText.cs
- IsolatedStoragePermission.cs
- ContainerSelectorActiveEvent.cs
- EdmScalarPropertyAttribute.cs
- QuinticEase.cs
- DataGridCaption.cs
- DefaultWorkflowTransactionService.cs
- ScriptingScriptResourceHandlerSection.cs
- TopClause.cs
- FormatSettings.cs
- ExceptionList.cs
- HandleCollector.cs
- TraceContext.cs
- CopyCodeAction.cs
- TextTreeInsertElementUndoUnit.cs
- CheckBoxBaseAdapter.cs
- TreeSet.cs
- CultureInfoConverter.cs
- QuaternionIndependentAnimationStorage.cs
- FileUtil.cs
- StreamBodyWriter.cs
- StyleBamlTreeBuilder.cs
- DataBindingCollection.cs
- codemethodreferenceexpression.cs
- DrawingServices.cs
- DataObjectFieldAttribute.cs
- GeometryDrawing.cs
- OdbcDataReader.cs
- TextElementEditingBehaviorAttribute.cs
- APCustomTypeDescriptor.cs
- WebPartManager.cs
- CompilerGlobalScopeAttribute.cs
- CallbackCorrelationInitializer.cs
- PropertyItemInternal.cs
- GeometryCollection.cs