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
- CodeLinePragma.cs
- IncrementalHitTester.cs
- LicenseManager.cs
- MaskInputRejectedEventArgs.cs
- AdjustableArrowCap.cs
- MsmqIntegrationSecurityElement.cs
- SafeNativeMethods.cs
- RangeValuePatternIdentifiers.cs
- HideDisabledControlAdapter.cs
- ValidationErrorCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- HtmlCalendarAdapter.cs
- StyleTypedPropertyAttribute.cs
- EntryPointNotFoundException.cs
- StatementContext.cs
- VectorCollection.cs
- RuntimeHelpers.cs
- TimerEventSubscriptionCollection.cs
- DashStyle.cs
- cache.cs
- PropertyDescriptorCollection.cs
- FixedHighlight.cs
- EntityDataSourceDesigner.cs
- Path.cs
- securestring.cs
- PropertyMappingExceptionEventArgs.cs
- ListViewPagedDataSource.cs
- Help.cs
- PackWebRequest.cs
- PageThemeCodeDomTreeGenerator.cs
- SafeUserTokenHandle.cs
- ApplyImportsAction.cs
- SessionPageStateSection.cs
- StringDictionaryEditor.cs
- _WebProxyDataBuilder.cs
- ToolboxItemFilterAttribute.cs
- ListViewItem.cs
- DataServiceContext.cs
- _NtlmClient.cs
- ListViewContainer.cs
- SoapProtocolReflector.cs
- ConnectionsZoneAutoFormat.cs
- CryptoApi.cs
- NativeMethods.cs
- ProtocolElement.cs
- DataGridViewRowEventArgs.cs
- CodeSubDirectory.cs
- ElementMarkupObject.cs
- WhitespaceReader.cs
- TypedColumnHandler.cs
- ListViewItemMouseHoverEvent.cs
- XmlWhitespace.cs
- QueryableFilterRepeater.cs
- MetaModel.cs
- ToolboxDataAttribute.cs
- AttributeUsageAttribute.cs
- OdbcCommand.cs
- OutputScope.cs
- Int16Animation.cs
- GreaterThanOrEqual.cs
- QualifiedCellIdBoolean.cs
- TextDocumentView.cs
- SqlDataSourceFilteringEventArgs.cs
- DockPattern.cs
- WorkItem.cs
- ValueProviderWrapper.cs
- SqlInternalConnectionTds.cs
- AudioDeviceOut.cs
- XNodeNavigator.cs
- SQLDateTimeStorage.cs
- SynchronizedMessageSource.cs
- Typeface.cs
- XLinq.cs
- DSACryptoServiceProvider.cs
- XNodeNavigator.cs
- DocumentViewerBaseAutomationPeer.cs
- HtmlShim.cs
- EditorPartDesigner.cs
- DataRowExtensions.cs
- DiagnosticTraceSource.cs
- ControlHelper.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DataGridRelationshipRow.cs
- AccessDataSourceView.cs
- ForwardPositionQuery.cs
- DataGridViewCellStateChangedEventArgs.cs
- WebPartActionVerb.cs
- SortKey.cs
- SecurityHelper.cs
- PixelFormat.cs
- EditCommandColumn.cs
- BuildProviderAppliesToAttribute.cs
- ArglessEventHandlerProxy.cs
- WebServiceEnumData.cs
- Ops.cs
- Relationship.cs
- CqlParser.cs
- TableSectionStyle.cs
- wpf-etw.cs
- ZipPackage.cs