Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultPropertyAttribute.cs / 1305376 / 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
- RecognizedAudio.cs
- ViewStateModeByIdAttribute.cs
- IdentifierCollection.cs
- CacheChildrenQuery.cs
- DataGridViewColumn.cs
- ElementsClipboardData.cs
- TextParagraphCache.cs
- ObjectViewListener.cs
- PageThemeBuildProvider.cs
- AttachedAnnotationChangedEventArgs.cs
- QuaternionAnimation.cs
- RsaKeyIdentifierClause.cs
- TCPClient.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- ConfigXmlCDataSection.cs
- FormsAuthenticationModule.cs
- ExceptionRoutedEventArgs.cs
- PiiTraceSource.cs
- SqlClientMetaDataCollectionNames.cs
- MaterialGroup.cs
- SecurityDocument.cs
- SoundPlayer.cs
- XPathParser.cs
- LayoutTableCell.cs
- ItemsPresenter.cs
- PasswordBox.cs
- ServiceSecurityAuditBehavior.cs
- MailWebEventProvider.cs
- _SafeNetHandles.cs
- ColorContext.cs
- TransactionalPackage.cs
- DynamicResourceExtensionConverter.cs
- RemoteWebConfigurationHostStream.cs
- ClientConfigPaths.cs
- LayoutManager.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- WasAdminWrapper.cs
- ListComponentEditorPage.cs
- ReaderContextStackData.cs
- _TLSstream.cs
- ObjectConverter.cs
- ProtocolsSection.cs
- WebPartZoneCollection.cs
- HtmlWindowCollection.cs
- BufferedGraphicsContext.cs
- RenderDataDrawingContext.cs
- DrawTreeNodeEventArgs.cs
- OdbcEnvironment.cs
- DeploymentExceptionMapper.cs
- ConnectionConsumerAttribute.cs
- XmlTypeMapping.cs
- DirectoryInfo.cs
- MemberDomainMap.cs
- StreamAsIStream.cs
- OleDbException.cs
- TextChange.cs
- SourceChangedEventArgs.cs
- PerformanceCounterManager.cs
- XomlCompilerResults.cs
- Normalization.cs
- SqlLiftIndependentRowExpressions.cs
- Point4D.cs
- BindingsSection.cs
- TextSpanModifier.cs
- LineMetrics.cs
- CreateUserErrorEventArgs.cs
- XmlDeclaration.cs
- RetrieveVirtualItemEventArgs.cs
- _ContextAwareResult.cs
- CellIdBoolean.cs
- x509utils.cs
- WindowsListViewGroupSubsetLink.cs
- CompModSwitches.cs
- HttpModuleAction.cs
- DataServiceKeyAttribute.cs
- SafeCryptContextHandle.cs
- BaseCAMarshaler.cs
- HotSpot.cs
- ListViewPagedDataSource.cs
- Button.cs
- BufferedStream.cs
- ContentValidator.cs
- DocumentViewerHelper.cs
- XPathDocumentIterator.cs
- ClaimTypes.cs
- RootBuilder.cs
- ServiceParser.cs
- QueryExtender.cs
- ProfessionalColorTable.cs
- RowToFieldTransformer.cs
- StringFreezingAttribute.cs
- ManagedWndProcTracker.cs
- AssemblyAttributesGoHere.cs
- CancellationHandlerDesigner.cs
- UpdatePanel.cs
- IPAddress.cs
- WebBrowserSiteBase.cs
- RuleInfoComparer.cs
- ReadOnlyTernaryTree.cs