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
- ObjectListCommandCollection.cs
- DescriptionAttribute.cs
- ModuleBuilder.cs
- PropertyGridView.cs
- ServiceCredentials.cs
- WebZone.cs
- HeaderCollection.cs
- CacheMemory.cs
- PageEventArgs.cs
- WebPartEditorApplyVerb.cs
- ComplexPropertyEntry.cs
- IdleTimeoutMonitor.cs
- ProcessMessagesAsyncResult.cs
- RemotingSurrogateSelector.cs
- ListViewHitTestInfo.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- AppSettingsSection.cs
- CookieProtection.cs
- SignedXmlDebugLog.cs
- XmlBinaryReaderSession.cs
- ImageCodecInfoPrivate.cs
- recordstatescratchpad.cs
- WebService.cs
- BulletChrome.cs
- RuntimeCompatibilityAttribute.cs
- ColorBlend.cs
- HashCoreRequest.cs
- WorkflowApplicationAbortedException.cs
- MessageCredentialType.cs
- BinaryConverter.cs
- PreloadedPackages.cs
- LoadedOrUnloadedOperation.cs
- NetCodeGroup.cs
- TemplatePropertyEntry.cs
- listitem.cs
- IisTraceWebEventProvider.cs
- PartitionResolver.cs
- DynamicScriptObject.cs
- FileDialog.cs
- TraceData.cs
- SqlInternalConnectionTds.cs
- ObsoleteAttribute.cs
- ReadWriteSpinLock.cs
- ManagementOptions.cs
- oledbmetadatacollectionnames.cs
- WebPartAddingEventArgs.cs
- BroadcastEventHelper.cs
- TextBoxAutomationPeer.cs
- PersonalizationStateQuery.cs
- _TransmitFileOverlappedAsyncResult.cs
- ProxyHwnd.cs
- HtmlContainerControl.cs
- NullExtension.cs
- MenuCommandService.cs
- InvokeMethodActivityDesigner.cs
- Light.cs
- FontClient.cs
- Claim.cs
- SqlXmlStorage.cs
- PersonalizationProviderHelper.cs
- BoundColumn.cs
- Int32Storage.cs
- SqlErrorCollection.cs
- SchemaImporter.cs
- FragmentNavigationEventArgs.cs
- SiteOfOriginPart.cs
- FormClosedEvent.cs
- PolicyLevel.cs
- TypeLoadException.cs
- CompilerCollection.cs
- ToolboxItemCollection.cs
- OrderedDictionary.cs
- PanelDesigner.cs
- FormsAuthentication.cs
- MimeTextImporter.cs
- SqlCrossApplyToCrossJoin.cs
- ToolStripDropDownMenu.cs
- HTTPNotFoundHandler.cs
- MimeBasePart.cs
- MemberInfoSerializationHolder.cs
- EncoderBestFitFallback.cs
- SessionPageStatePersister.cs
- GridViewColumnCollection.cs
- ProgressBarRenderer.cs
- ObservableCollection.cs
- WasHttpModulesInstallComponent.cs
- DispatchWrapper.cs
- IndicFontClient.cs
- _ListenerRequestStream.cs
- SqlBooleanMismatchVisitor.cs
- VariableElement.cs
- EditorAttribute.cs
- TabPageDesigner.cs
- ProjectionQueryOptionExpression.cs
- ExtendedPropertyCollection.cs
- Attributes.cs
- Int32AnimationBase.cs
- DataSourceBooleanViewSchemaConverter.cs
- WebMessageFormatHelper.cs
- ThreadAbortException.cs