Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DefaultPropertyAttribute.cs / 1 / DefaultPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DefaultPropertyAttribute : Attribute { ///Specifies the default property for a component. ////// This is the default event name. /// private readonly string name; ////// public DefaultPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default property for the component this attribute is /// bound to. /// ////// public static readonly DefaultPropertyAttribute Default = new DefaultPropertyAttribute(null); public override bool Equals(object obj) { DefaultPropertyAttribute other = obj as DefaultPropertyAttribute; return (other != null) && other.Name == name; } public override int GetHashCode() { return base.GetHashCode(); } } }/// Specifies the default value for the ///, which is . This /// field is read-only. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextWriterTraceListener.cs
- Control.cs
- DataTrigger.cs
- HttpDebugHandler.cs
- Component.cs
- RepeatButtonAutomationPeer.cs
- XmlCollation.cs
- AspCompat.cs
- SevenBitStream.cs
- EntityDesignerUtils.cs
- PostBackOptions.cs
- XmlIncludeAttribute.cs
- RecordManager.cs
- SharedConnectionInfo.cs
- CommunicationObjectAbortedException.cs
- CompilerCollection.cs
- PartialCachingControl.cs
- RuleSettingsCollection.cs
- XmlAttributeCollection.cs
- FrameworkContentElement.cs
- ColorConvertedBitmapExtension.cs
- XamlPathDataSerializer.cs
- UniqueCodeIdentifierScope.cs
- DiscoveryVersionConverter.cs
- BuildManagerHost.cs
- UnsafePeerToPeerMethods.cs
- XPathNavigatorReader.cs
- StaticExtensionConverter.cs
- BinHexEncoder.cs
- SignatureConfirmationElement.cs
- AlphaSortedEnumConverter.cs
- WMIInterop.cs
- DictionaryContent.cs
- ChildDocumentBlock.cs
- COM2PictureConverter.cs
- WindowsFormsEditorServiceHelper.cs
- CodeMemberField.cs
- X509ChainPolicy.cs
- ArraySubsetEnumerator.cs
- MultipartContentParser.cs
- OleDbError.cs
- StatusStrip.cs
- BasicSecurityProfileVersion.cs
- Types.cs
- ValidationEventArgs.cs
- InputDevice.cs
- ObjectAnimationBase.cs
- Win32SafeHandles.cs
- TrackingStringDictionary.cs
- BaseResourcesBuildProvider.cs
- StorageRoot.cs
- ArgumentNullException.cs
- FontFamilyConverter.cs
- Rect3DValueSerializer.cs
- MenuScrollingVisibilityConverter.cs
- CompensableActivity.cs
- CurrencyManager.cs
- KnownAssembliesSet.cs
- XmlUtil.cs
- SafeRightsManagementQueryHandle.cs
- SharedStatics.cs
- PresentationAppDomainManager.cs
- AssertSection.cs
- EastAsianLunisolarCalendar.cs
- LocalFileSettingsProvider.cs
- Thumb.cs
- RoleManagerModule.cs
- SchemaMapping.cs
- ClientEventManager.cs
- ResizingMessageFilter.cs
- StaticSiteMapProvider.cs
- AuthorizationContext.cs
- ElementMarkupObject.cs
- RepeaterItemEventArgs.cs
- DriveNotFoundException.cs
- PixelFormatConverter.cs
- RawStylusActions.cs
- Properties.cs
- ViewManager.cs
- StrongBox.cs
- EtwTrace.cs
- Block.cs
- LinkButton.cs
- OneOfElement.cs
- TokenizerHelper.cs
- StateRuntime.cs
- DataGridViewImageColumn.cs
- SqlUnionizer.cs
- Privilege.cs
- DataBindEngine.cs
- BuilderPropertyEntry.cs
- StoreContentChangedEventArgs.cs
- ModuleElement.cs
- DataGridToolTip.cs
- ArglessEventHandlerProxy.cs
- DataTableNewRowEvent.cs
- formatter.cs
- BlobPersonalizationState.cs
- ParagraphResult.cs
- BinaryParser.cs