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
- PropertyValue.cs
- HtmlTable.cs
- SerializationSectionGroup.cs
- InputProviderSite.cs
- ComponentManagerBroker.cs
- ControlPager.cs
- CaretElement.cs
- DiagnosticsConfiguration.cs
- FileRecordSequenceCompletedAsyncResult.cs
- PreloadHost.cs
- BitArray.cs
- HideDisabledControlAdapter.cs
- ImmComposition.cs
- MimeTypeMapper.cs
- WindowProviderWrapper.cs
- DataRecordInfo.cs
- httpstaticobjectscollection.cs
- WeakReferenceKey.cs
- ProfilePropertyMetadata.cs
- FamilyMap.cs
- TextStore.cs
- XmlDataSourceNodeDescriptor.cs
- SystemResourceKey.cs
- CommentAction.cs
- PointKeyFrameCollection.cs
- ContravarianceAdapter.cs
- WebEventTraceProvider.cs
- Compiler.cs
- AlignmentXValidation.cs
- ClipboardData.cs
- ServerIdentity.cs
- XmlSerializerObjectSerializer.cs
- RulePatternOps.cs
- ACL.cs
- SerializationFieldInfo.cs
- Tablet.cs
- EdmToObjectNamespaceMap.cs
- TreeBuilderBamlTranslator.cs
- StringWriter.cs
- BmpBitmapDecoder.cs
- ManagementException.cs
- SmiConnection.cs
- BitmapDownload.cs
- CompilerErrorCollection.cs
- SudsParser.cs
- CommandLineParser.cs
- EnumUnknown.cs
- _AutoWebProxyScriptEngine.cs
- SystemIPGlobalStatistics.cs
- DESCryptoServiceProvider.cs
- SafeEventLogWriteHandle.cs
- OutOfProcStateClientManager.cs
- Style.cs
- ADConnectionHelper.cs
- CompositionTarget.cs
- IndexerNameAttribute.cs
- Table.cs
- Menu.cs
- Int32Collection.cs
- DelegateSerializationHolder.cs
- RbTree.cs
- X509AsymmetricSecurityKey.cs
- OutputCacheSection.cs
- WindowsButton.cs
- ApplicationTrust.cs
- WorkflowIdleElement.cs
- JapaneseLunisolarCalendar.cs
- XmlLoader.cs
- XmlSubtreeReader.cs
- RangeBaseAutomationPeer.cs
- SimpleHandlerFactory.cs
- DropDownList.cs
- TailCallAnalyzer.cs
- XPathExpr.cs
- User.cs
- BufferedGraphics.cs
- ServerValidateEventArgs.cs
- DataGridViewRowConverter.cs
- LineMetrics.cs
- SvcMapFileLoader.cs
- Brush.cs
- ModelService.cs
- IImplicitResourceProvider.cs
- OutputCacheSettings.cs
- XmlSchemaAnyAttribute.cs
- BuildResultCache.cs
- XPathArrayIterator.cs
- Token.cs
- IProvider.cs
- Int64Converter.cs
- FamilyCollection.cs
- ClientOptions.cs
- XPathScanner.cs
- MaskedTextProvider.cs
- TypeDescriptor.cs
- BitmapCodecInfo.cs
- mansign.cs
- XmlCDATASection.cs
- wgx_sdk_version.cs
- XmlSchemaNotation.cs