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
- Assert.cs
- Library.cs
- UnsafeNativeMethods.cs
- LicenseProviderAttribute.cs
- Debug.cs
- CapabilitiesRule.cs
- AttributeXamlType.cs
- SafeThemeHandle.cs
- StatusStrip.cs
- ClientType.cs
- Point.cs
- BinaryNode.cs
- ViewRendering.cs
- RawKeyboardInputReport.cs
- FixedSOMContainer.cs
- RequiredAttributeAttribute.cs
- ThemeInfoAttribute.cs
- InstancePersistenceCommandException.cs
- SdlChannelSink.cs
- cache.cs
- Win32Exception.cs
- ClientSettings.cs
- LingerOption.cs
- AdapterUtil.cs
- ToolboxItem.cs
- ComboBoxItem.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- Italic.cs
- NameValueConfigurationElement.cs
- CustomErrorCollection.cs
- SeekStoryboard.cs
- InvokeBase.cs
- PolyBezierSegment.cs
- COM2EnumConverter.cs
- PolyQuadraticBezierSegment.cs
- OptimisticConcurrencyException.cs
- DecoderNLS.cs
- ClaimComparer.cs
- FontDriver.cs
- ClientFormsAuthenticationCredentials.cs
- PublisherIdentityPermission.cs
- CounterSampleCalculator.cs
- CustomSignedXml.cs
- Query.cs
- FormView.cs
- BulletedList.cs
- XPathScanner.cs
- ComplexType.cs
- PopOutPanel.cs
- PolyQuadraticBezierSegment.cs
- DynamicQueryableWrapper.cs
- MetabaseSettingsIis7.cs
- FormViewUpdatedEventArgs.cs
- WS2007HttpBindingElement.cs
- filewebresponse.cs
- DrawListViewColumnHeaderEventArgs.cs
- Rectangle.cs
- XmlSchemaImporter.cs
- CodeCommentStatement.cs
- _NativeSSPI.cs
- DocumentScope.cs
- DriveNotFoundException.cs
- XmlSchemaObjectTable.cs
- Variable.cs
- ValidateNames.cs
- ModelTreeEnumerator.cs
- basevalidator.cs
- HtmlInputFile.cs
- StorageAssociationTypeMapping.cs
- SamlAdvice.cs
- PolyLineSegmentFigureLogic.cs
- WebPartConnectionsConnectVerb.cs
- PolicyManager.cs
- MatrixTransform.cs
- JsonWriterDelegator.cs
- InvalidWMPVersionException.cs
- CommandBindingCollection.cs
- ValidationManager.cs
- WorkflowInstance.cs
- DataGridViewLayoutData.cs
- DbMetaDataCollectionNames.cs
- ScrollEvent.cs
- UrlPath.cs
- SerialErrors.cs
- MultiPageTextView.cs
- Control.cs
- SqlWorkflowPersistenceService.cs
- PeerObject.cs
- TerminateWorkflow.cs
- DesignSurfaceManager.cs
- FileDetails.cs
- Parameter.cs
- SparseMemoryStream.cs
- ExceptionHandlersDesigner.cs
- WebPartManagerInternals.cs
- FieldDescriptor.cs
- StaticFileHandler.cs
- XmlElementList.cs
- MouseEvent.cs
- EnumerableWrapperWeakToStrong.cs