Code:
/ 4.0 / 4.0 / untmp / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ViewStateModeByIdAttribute.cs
- MeshGeometry3D.cs
- WizardForm.cs
- IDReferencePropertyAttribute.cs
- TextViewElement.cs
- DeviceContexts.cs
- DesignerAdapterAttribute.cs
- HandleDictionary.cs
- X509AsymmetricSecurityKey.cs
- StreamUpdate.cs
- Shared.cs
- StrokeNode.cs
- embossbitmapeffect.cs
- EntityDataSourceWrapper.cs
- XmlSchemaException.cs
- ArrayTypeMismatchException.cs
- ThreadStartException.cs
- PageBreakRecord.cs
- NativeCppClassAttribute.cs
- IncrementalReadDecoders.cs
- SchemaTypeEmitter.cs
- CompilerErrorCollection.cs
- StorageRoot.cs
- DocumentCollection.cs
- ForceCopyBuildProvider.cs
- BindableAttribute.cs
- Label.cs
- MouseEventArgs.cs
- ContentType.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- GridViewRowPresenter.cs
- SessionParameter.cs
- CodeSubDirectory.cs
- KnownColorTable.cs
- ParserStreamGeometryContext.cs
- NodeFunctions.cs
- DataGridLinkButton.cs
- PropertyTabChangedEvent.cs
- RowCache.cs
- SystemTcpStatistics.cs
- EndOfStreamException.cs
- CatalogZoneBase.cs
- DisableDpiAwarenessAttribute.cs
- FunctionDescription.cs
- ListDataHelper.cs
- EntityParameterCollection.cs
- ActionItem.cs
- HttpCapabilitiesSectionHandler.cs
- ArgIterator.cs
- XPathNodePointer.cs
- SecurityKeyType.cs
- _WebProxyDataBuilder.cs
- ItemDragEvent.cs
- While.cs
- WebPartDisplayMode.cs
- StatusBar.cs
- DataPagerFieldCollection.cs
- OracleBoolean.cs
- ValidatedControlConverter.cs
- XNameConverter.cs
- SoapCommonClasses.cs
- DataGridSortCommandEventArgs.cs
- PanelDesigner.cs
- BinaryExpression.cs
- SqlSupersetValidator.cs
- WindowsEditBoxRange.cs
- SqlLiftWhereClauses.cs
- ExpressionUtilities.cs
- Label.cs
- AsyncResult.cs
- ByteBufferPool.cs
- ProfessionalColorTable.cs
- MetadataUtil.cs
- MetricEntry.cs
- CollectionViewGroupInternal.cs
- StateMachineExecutionState.cs
- RenderDataDrawingContext.cs
- FileLogRecordStream.cs
- ConfigXmlDocument.cs
- GroupQuery.cs
- AttributeTable.cs
- PerfCounterSection.cs
- DataSourceIDConverter.cs
- Pool.cs
- TaskFormBase.cs
- FilterElement.cs
- ImageButton.cs
- DesignerLoader.cs
- UnionExpr.cs
- XmlSchemaObject.cs
- LinkGrep.cs
- PolyBezierSegment.cs
- TaskFormBase.cs
- SmiEventSink_DeferedProcessing.cs
- DataGridViewRowPostPaintEventArgs.cs
- CompleteWizardStep.cs
- CatalogPartChrome.cs
- ImageClickEventArgs.cs
- ResourcePool.cs
- SplashScreen.cs