Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- OdbcUtils.cs
- RadioButton.cs
- SizeAnimationClockResource.cs
- Overlapped.cs
- WinInet.cs
- PageContent.cs
- CommandBindingCollection.cs
- Converter.cs
- TargetConverter.cs
- OrderedHashRepartitionEnumerator.cs
- DefaultTypeArgumentAttribute.cs
- SwitchCase.cs
- LeaseManager.cs
- KeyValuePairs.cs
- ListViewItem.cs
- StorageAssociationSetMapping.cs
- ExtendedProtectionPolicy.cs
- TrustManagerPromptUI.cs
- Attachment.cs
- ResourceKey.cs
- DataGridColumnCollection.cs
- InkPresenterAutomationPeer.cs
- PrivacyNoticeElement.cs
- IPCCacheManager.cs
- CellCreator.cs
- DateTimeFormatInfo.cs
- GroupQuery.cs
- Table.cs
- FolderBrowserDialog.cs
- HotSpot.cs
- EngineSiteSapi.cs
- ViewManager.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GeneralTransform3DGroup.cs
- Vertex.cs
- FileEnumerator.cs
- SortKey.cs
- Rect3DValueSerializer.cs
- HtmlLink.cs
- PauseStoryboard.cs
- UniqueCodeIdentifierScope.cs
- TextParaLineResult.cs
- DataGridViewSelectedRowCollection.cs
- WindowsAuthenticationModule.cs
- ErrorView.xaml.cs
- GridPattern.cs
- SiteMapPath.cs
- DemultiplexingDispatchMessageFormatter.cs
- XsltSettings.cs
- DataGridViewCellMouseEventArgs.cs
- ArgumentOutOfRangeException.cs
- SortKey.cs
- RequiredFieldValidator.cs
- CompilerGeneratedAttribute.cs
- OptimalTextSource.cs
- VariableQuery.cs
- ViewEventArgs.cs
- StorageComplexTypeMapping.cs
- XmlChoiceIdentifierAttribute.cs
- OleCmdHelper.cs
- MasterPage.cs
- CacheForPrimitiveTypes.cs
- LinkButton.cs
- IncomingWebRequestContext.cs
- RemotingConfiguration.cs
- DtcInterfaces.cs
- XmlSerializerImportOptions.cs
- RouteValueDictionary.cs
- unsafeIndexingFilterStream.cs
- Padding.cs
- EntityDataSourceMemberPath.cs
- DelegateSerializationHolder.cs
- StringPropertyBuilder.cs
- HandlerFactoryWrapper.cs
- ColorContext.cs
- LoginView.cs
- CodeObjectCreateExpression.cs
- UserNamePasswordValidationMode.cs
- XamlVector3DCollectionSerializer.cs
- RefreshEventArgs.cs
- ActivityExecutionFilter.cs
- XmlMapping.cs
- CustomAttributeFormatException.cs
- XmlDataCollection.cs
- DirectoryNotFoundException.cs
- ErrorFormatterPage.cs
- InstanceDescriptor.cs
- SamlAttributeStatement.cs
- ClientScriptManager.cs
- BaseTypeViewSchema.cs
- ScrollPattern.cs
- _emptywebproxy.cs
- StylusSystemGestureEventArgs.cs
- ProviderSettingsCollection.cs
- ApplyImportsAction.cs
- TemplateBindingExtension.cs
- ServiceHost.cs
- ContextMenuStrip.cs
- Scanner.cs
- ObjectView.cs