Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / MergablePropertyAttribute.cs / 1305376 / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlBoundElement.cs
- ParentQuery.cs
- RequestQueryParser.cs
- MissingManifestResourceException.cs
- EventPrivateKey.cs
- SchemaNotation.cs
- ErrorInfoXmlDocument.cs
- InternalDispatchObject.cs
- NumberSubstitution.cs
- InputScopeAttribute.cs
- HttpCachePolicy.cs
- GuidTagList.cs
- VariableExpressionConverter.cs
- CreateUserWizardStep.cs
- WebPartCatalogCloseVerb.cs
- Rect3DValueSerializer.cs
- DataTemplateSelector.cs
- BuildProvidersCompiler.cs
- DuplicateWaitObjectException.cs
- ImplicitInputBrush.cs
- SqlDataReaderSmi.cs
- AliasExpr.cs
- DataGridCommandEventArgs.cs
- BitmapEffectState.cs
- SessionSwitchEventArgs.cs
- ReferenceAssemblyAttribute.cs
- MsmqInputChannelListener.cs
- RangeBase.cs
- HtmlElementErrorEventArgs.cs
- ManagementNamedValueCollection.cs
- ProfilePropertySettingsCollection.cs
- XmlAttributes.cs
- TextTreeInsertElementUndoUnit.cs
- SafeEventHandle.cs
- Setter.cs
- FontStyles.cs
- FontSourceCollection.cs
- HScrollBar.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SafeEventLogReadHandle.cs
- LocalizationComments.cs
- SafeNativeMethods.cs
- DataServiceResponse.cs
- HostedElements.cs
- SymmetricAlgorithm.cs
- StringUtil.cs
- SoapElementAttribute.cs
- COAUTHINFO.cs
- HandlerMappingMemo.cs
- DiagnosticsConfigurationHandler.cs
- codemethodreferenceexpression.cs
- ConfigurationValidatorAttribute.cs
- WebConfigurationManager.cs
- AnnotationDocumentPaginator.cs
- PenContext.cs
- ProfileEventArgs.cs
- OutputCacheProfileCollection.cs
- securestring.cs
- Link.cs
- BindingCompleteEventArgs.cs
- Wildcard.cs
- ConfigXmlCDataSection.cs
- QilXmlReader.cs
- DataViewSettingCollection.cs
- Translator.cs
- XmlDeclaration.cs
- ThreadExceptionDialog.cs
- CryptoProvider.cs
- BitmapEffectDrawingContent.cs
- ConstructorNeedsTagAttribute.cs
- CollectionChangeEventArgs.cs
- CodeSnippetExpression.cs
- ConfigXmlAttribute.cs
- ISAPIWorkerRequest.cs
- WindowManager.cs
- AudioLevelUpdatedEventArgs.cs
- InstanceDataCollectionCollection.cs
- ConfigurationSectionGroupCollection.cs
- NativeMethods.cs
- GeneralTransform3DTo2DTo3D.cs
- EventRecord.cs
- CompareValidator.cs
- WebServiceMethodData.cs
- HwndAppCommandInputProvider.cs
- CurrencyManager.cs
- DataGridCellClipboardEventArgs.cs
- GlyphRunDrawing.cs
- RpcAsyncResult.cs
- MaskedTextProvider.cs
- UIElement.cs
- TextDecorations.cs
- CustomCredentialPolicy.cs
- KernelTypeValidation.cs
- InteropTrackingRecord.cs
- XmlnsDictionary.cs
- SqlUdtInfo.cs
- EncoderParameters.cs
- HandleCollector.cs
- MemberAccessException.cs
- XmlAttributeCollection.cs