Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HttpEncoderUtility.cs
- OleDbError.cs
- CapabilitiesState.cs
- AttributeEmitter.cs
- TypeToStringValueConverter.cs
- DependencyPropertyKey.cs
- WebPartCloseVerb.cs
- MimeMultiPart.cs
- __FastResourceComparer.cs
- TextBoxView.cs
- CompiledXpathExpr.cs
- ServiceChannelManager.cs
- BCryptNative.cs
- OleDbErrorCollection.cs
- SynchronousReceiveElement.cs
- FailedToStartupUIException.cs
- DbMetaDataFactory.cs
- UserControlCodeDomTreeGenerator.cs
- PanelDesigner.cs
- TypedDataSourceCodeGenerator.cs
- AssemblyCollection.cs
- AVElementHelper.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- HiddenFieldPageStatePersister.cs
- cookieexception.cs
- StringDictionary.cs
- HMACSHA512.cs
- BindingListCollectionView.cs
- WsatExtendedInformation.cs
- TextFormatterImp.cs
- XmlBaseWriter.cs
- WebPartCatalogAddVerb.cs
- Control.cs
- ChildrenQuery.cs
- WithStatement.cs
- ObjectDataSourceMethodEventArgs.cs
- SecurityPolicySection.cs
- StatusStrip.cs
- AlgoModule.cs
- CloudCollection.cs
- keycontainerpermission.cs
- RelationshipConverter.cs
- StorageAssociationTypeMapping.cs
- GroupQuery.cs
- ElementNotAvailableException.cs
- SettingsPropertyValueCollection.cs
- JoinElimination.cs
- ToolStripItemTextRenderEventArgs.cs
- Typography.cs
- ImageConverter.cs
- MemberAssignment.cs
- UrlMappingsModule.cs
- EdmPropertyAttribute.cs
- MenuTracker.cs
- SystemColorTracker.cs
- NetSectionGroup.cs
- RootBrowserWindow.cs
- AsyncOperation.cs
- BasicCommandTreeVisitor.cs
- OdbcDataAdapter.cs
- ToggleButton.cs
- GrammarBuilderPhrase.cs
- SerializationException.cs
- CounterCreationData.cs
- XmlSchemaDocumentation.cs
- SubstitutionList.cs
- DeviceContext.cs
- CodePropertyReferenceExpression.cs
- WebEventTraceProvider.cs
- ContentPathSegment.cs
- documentsequencetextview.cs
- HtmlEmptyTagControlBuilder.cs
- SoapReflectionImporter.cs
- ISFClipboardData.cs
- MouseEventArgs.cs
- NameSpaceEvent.cs
- Localizer.cs
- BinHexDecoder.cs
- LowerCaseStringConverter.cs
- RegexWorker.cs
- Types.cs
- PnrpPermission.cs
- EdmType.cs
- SecurityUtils.cs
- GeometryHitTestParameters.cs
- MultiplexingFormatMapping.cs
- ControlCollection.cs
- DataGridDetailsPresenterAutomationPeer.cs
- MinimizableAttributeTypeConverter.cs
- WebPartConnectVerb.cs
- ExternalDataExchangeClient.cs
- ContentAlignmentEditor.cs
- CustomCredentialPolicy.cs
- FormatSettings.cs
- DataGridHeaderBorder.cs
- WebBrowserUriTypeConverter.cs
- TcpConnectionPool.cs
- TextParagraphView.cs
- X509CertificateClaimSet.cs
- BaseComponentEditor.cs