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
- TransformerConfigurationWizardBase.cs
- ChoiceConverter.cs
- ListViewPagedDataSource.cs
- ContainerUtilities.cs
- HwndAppCommandInputProvider.cs
- Margins.cs
- StrongName.cs
- CodeExpressionCollection.cs
- FillBehavior.cs
- XslAst.cs
- figurelengthconverter.cs
- ResourcePermissionBaseEntry.cs
- DbConnectionPoolGroupProviderInfo.cs
- DisplayClaim.cs
- BuildDependencySet.cs
- PathData.cs
- SpellerError.cs
- SamlAssertionKeyIdentifierClause.cs
- OdbcConnectionHandle.cs
- assertwrapper.cs
- WebReferenceOptions.cs
- TextDecoration.cs
- DataGridHeaderBorder.cs
- OracleDataAdapter.cs
- ValidationErrorInfo.cs
- BuildProviderUtils.cs
- Inline.cs
- StringArrayEditor.cs
- securitymgrsite.cs
- XPathException.cs
- SqlDataSourceFilteringEventArgs.cs
- dbdatarecord.cs
- DispatchOperationRuntime.cs
- EmbeddedObject.cs
- BinaryWriter.cs
- DtdParser.cs
- ServiceModelInstallComponent.cs
- HttpAsyncResult.cs
- XmlSignatureManifest.cs
- PeerName.cs
- FormViewCommandEventArgs.cs
- InvalidBodyAccessException.cs
- Pool.cs
- LongValidatorAttribute.cs
- TypeUsage.cs
- SolidColorBrush.cs
- XmlDocument.cs
- MetadataWorkspace.cs
- AttributeSetAction.cs
- SqlFormatter.cs
- DataRecordInternal.cs
- SafeNativeMethods.cs
- PasswordBoxAutomationPeer.cs
- BaseValidatorDesigner.cs
- _WinHttpWebProxyDataBuilder.cs
- SQLString.cs
- DbExpressionVisitor_TResultType.cs
- LayoutExceptionEventArgs.cs
- DragEvent.cs
- TargetInvocationException.cs
- XmlDataSourceView.cs
- PersonalizationProviderCollection.cs
- Label.cs
- ToolboxItem.cs
- AutoResetEvent.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- WeakReferenceList.cs
- SafeTokenHandle.cs
- WindowsAuthenticationEventArgs.cs
- PasswordRecovery.cs
- MouseOverProperty.cs
- ForwardPositionQuery.cs
- PagePropertiesChangingEventArgs.cs
- RemoveStoryboard.cs
- HtmlTableRow.cs
- CustomAssemblyResolver.cs
- TemplateColumn.cs
- DetailsViewInsertedEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- TriggerAction.cs
- MatrixTransform.cs
- TextAction.cs
- externdll.cs
- PolyQuadraticBezierSegment.cs
- ValidationEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- UnsafeNativeMethodsMilCoreApi.cs
- InkCollectionBehavior.cs
- TraceInternal.cs
- SettingsPropertyValue.cs
- UriParserTemplates.cs
- ColorContext.cs
- sqlstateclientmanager.cs
- WebBrowser.cs
- Panel.cs
- PageRouteHandler.cs
- KeyValuePairs.cs
- RuleCache.cs
- Base64Encoding.cs
- BaseWebProxyFinder.cs