Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- App.cs
- UnionCodeGroup.cs
- ServiceOperationViewControl.cs
- PageCatalogPart.cs
- EventMappingSettings.cs
- MediaSystem.cs
- filewebresponse.cs
- WindowsScroll.cs
- Command.cs
- AssemblySettingAttributes.cs
- _CookieModule.cs
- _HTTPDateParse.cs
- DataGridViewSelectedRowCollection.cs
- TextBoxDesigner.cs
- ListenUriMode.cs
- ControlParameter.cs
- WindowsRegion.cs
- HttpProtocolImporter.cs
- AssemblyBuilder.cs
- nulltextnavigator.cs
- WebBrowserSiteBase.cs
- RtfControlWordInfo.cs
- HwndSubclass.cs
- SymmetricAlgorithm.cs
- VariableExpressionConverter.cs
- HijriCalendar.cs
- RemotingClientProxy.cs
- DbException.cs
- TextEditorTables.cs
- Expression.cs
- DataControlFieldCollection.cs
- _Events.cs
- ObjectCacheHost.cs
- EntitySet.cs
- WebBrowserPermission.cs
- AsnEncodedData.cs
- ProtocolElement.cs
- ValidationSummary.cs
- Automation.cs
- ValueConversionAttribute.cs
- ObjectQueryState.cs
- WindowsTab.cs
- JsonMessageEncoderFactory.cs
- PageParserFilter.cs
- ProfileParameter.cs
- XmlEnumAttribute.cs
- FixedSOMPage.cs
- __TransparentProxy.cs
- UnsafeNativeMethods.cs
- SmtpReplyReader.cs
- LoginNameDesigner.cs
- SimplePropertyEntry.cs
- SerializerDescriptor.cs
- ApplicationInfo.cs
- SqlUserDefinedTypeAttribute.cs
- Repeater.cs
- HwndSource.cs
- IERequestCache.cs
- CharacterMetrics.cs
- BitmapImage.cs
- HttpListenerContext.cs
- DbMetaDataFactory.cs
- OleDbRowUpdatedEvent.cs
- ReadOnlyNameValueCollection.cs
- WsatAdminException.cs
- DataSysAttribute.cs
- MembershipSection.cs
- GroupDescription.cs
- ContactManager.cs
- CheckBoxStandardAdapter.cs
- ScrollBar.cs
- RedistVersionInfo.cs
- wmiprovider.cs
- CircleHotSpot.cs
- HealthMonitoringSection.cs
- SafeFileMappingHandle.cs
- FixedTextView.cs
- Rect3D.cs
- Rectangle.cs
- Model3DCollection.cs
- Connection.cs
- InfoCardX509Validator.cs
- DispatcherHooks.cs
- Tablet.cs
- ipaddressinformationcollection.cs
- sapiproxy.cs
- oledbmetadatacollectionnames.cs
- PropertyEntry.cs
- XmlSchemaComplexContent.cs
- NodeFunctions.cs
- ToolboxItemFilterAttribute.cs
- LinkedList.cs
- UrlMappingsModule.cs
- FragmentQueryKB.cs
- TextStore.cs
- GridLengthConverter.cs
- TextFindEngine.cs
- DataServiceQueryProvider.cs
- XPathEmptyIterator.cs
- EllipticalNodeOperations.cs