Code:
/ FX-1434 / FX-1434 / 1.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
- RuntimeConfig.cs
- Exception.cs
- WebCategoryAttribute.cs
- XmlSchemaValidator.cs
- QueryOperationResponseOfT.cs
- SamlAuthorityBinding.cs
- WindowsSlider.cs
- IInstanceTable.cs
- safex509handles.cs
- AxHost.cs
- AudioLevelUpdatedEventArgs.cs
- WindowsMenu.cs
- BitmapDownload.cs
- Timer.cs
- CommandConverter.cs
- Literal.cs
- DbConnectionStringCommon.cs
- BulletChrome.cs
- CodeAttributeArgumentCollection.cs
- HistoryEventArgs.cs
- XsdBuilder.cs
- DocumentPaginator.cs
- PeerName.cs
- Expressions.cs
- NominalTypeEliminator.cs
- Matrix3D.cs
- WebPartEditVerb.cs
- TreeNodeBinding.cs
- URIFormatException.cs
- OutOfProcStateClientManager.cs
- FloaterBaseParaClient.cs
- Control.cs
- SoapEnumAttribute.cs
- AuthenticationModuleElementCollection.cs
- TypeLoadException.cs
- LogWriteRestartAreaState.cs
- CleanUpVirtualizedItemEventArgs.cs
- XmlSchemaSimpleTypeRestriction.cs
- WindowsNonControl.cs
- CompModSwitches.cs
- TextElementCollection.cs
- NamespaceList.cs
- ScalarType.cs
- SpecularMaterial.cs
- OdbcConnectionHandle.cs
- EventManager.cs
- Documentation.cs
- ConvertEvent.cs
- COM2PropertyDescriptor.cs
- ExpressionPrefixAttribute.cs
- FileLogRecordEnumerator.cs
- PasswordPropertyTextAttribute.cs
- MemberPathMap.cs
- PhysicalOps.cs
- PerformanceCounterPermission.cs
- XamlPoint3DCollectionSerializer.cs
- M3DUtil.cs
- CharStorage.cs
- InstancePersistenceCommand.cs
- DataTransferEventArgs.cs
- ReflectionPermission.cs
- NotificationContext.cs
- XmlSchemaComplexType.cs
- HttpDigestClientElement.cs
- ArraySortHelper.cs
- NullableLongSumAggregationOperator.cs
- ExeContext.cs
- SrgsToken.cs
- ProvidePropertyAttribute.cs
- GridSplitterAutomationPeer.cs
- SplitterEvent.cs
- EmptyCollection.cs
- CollectionContainer.cs
- SourceCollection.cs
- Metafile.cs
- BinaryExpression.cs
- RenderingBiasValidation.cs
- XmlWhitespace.cs
- QuotedStringFormatReader.cs
- BitmapImage.cs
- DataTemplate.cs
- Quaternion.cs
- EnumConverter.cs
- SurrogateSelector.cs
- ProviderConnectionPointCollection.cs
- RenderOptions.cs
- DocumentGrid.cs
- ObjectParameterCollection.cs
- PropertyTab.cs
- MediaTimeline.cs
- Win32SafeHandles.cs
- _SSPISessionCache.cs
- InstanceNotReadyException.cs
- Size3DConverter.cs
- DeclaredTypeValidator.cs
- DiagnosticTraceSource.cs
- InlineUIContainer.cs
- Int32Converter.cs
- MenuItemCollection.cs
- PublisherMembershipCondition.cs