Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- XmlSchemaValidator.cs
- ServiceModelEnumValidator.cs
- ColumnResizeAdorner.cs
- PaperSize.cs
- GridPattern.cs
- BinaryObjectReader.cs
- StateMachine.cs
- XmlAtomicValue.cs
- Calendar.cs
- CompilerInfo.cs
- cryptoapiTransform.cs
- DocumentCollection.cs
- XmlSerializerOperationGenerator.cs
- SoapEnumAttribute.cs
- OracleSqlParser.cs
- querybuilder.cs
- ParamArrayAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- RegionData.cs
- ReadContentAsBinaryHelper.cs
- DbConnectionOptions.cs
- GiveFeedbackEvent.cs
- DiscoveryProxy.cs
- DesignerProperties.cs
- MimeTypePropertyAttribute.cs
- TraceSource.cs
- QueryCoreOp.cs
- UpdateProgress.cs
- ErrorRuntimeConfig.cs
- Expander.cs
- Collection.cs
- SelectionProcessor.cs
- GroupByQueryOperator.cs
- SimpleMailWebEventProvider.cs
- SqlMethods.cs
- RegexTypeEditor.cs
- NamedPipeConnectionPoolSettingsElement.cs
- MetaModel.cs
- StrongNameMembershipCondition.cs
- SecurityUniqueId.cs
- DrawingAttributes.cs
- FragmentQuery.cs
- DataPagerFieldCommandEventArgs.cs
- SqlProfileProvider.cs
- SystemWebExtensionsSectionGroup.cs
- IsolatedStorage.cs
- AndCondition.cs
- PrintingPermission.cs
- EntityDataSourceWrapperCollection.cs
- TextTreeTextElementNode.cs
- GenerateTemporaryTargetAssembly.cs
- WebPartConnectionsDisconnectVerb.cs
- CounterSampleCalculator.cs
- FactoryRecord.cs
- RegionData.cs
- FocusTracker.cs
- XmlText.cs
- QueryConverter.cs
- linebase.cs
- RtfNavigator.cs
- DataGridPreparingCellForEditEventArgs.cs
- PersonalizationProviderHelper.cs
- DbMetaDataCollectionNames.cs
- DataMemberConverter.cs
- Border.cs
- TransactedReceiveData.cs
- MethodBuilderInstantiation.cs
- TransactionsSectionGroup.cs
- PackagePart.cs
- DocComment.cs
- HttpListenerContext.cs
- PrivilegeNotHeldException.cs
- TrailingSpaceComparer.cs
- PixelFormat.cs
- TemplateNameScope.cs
- DBAsyncResult.cs
- SqlTrackingWorkflowInstance.cs
- ThrowHelper.cs
- DataGridCaption.cs
- path.cs
- WsdlBuildProvider.cs
- TemplateControl.cs
- ManagementNamedValueCollection.cs
- FreezableCollection.cs
- TextRangeProviderWrapper.cs
- DesignerHelpers.cs
- InkCollectionBehavior.cs
- HostedController.cs
- SqlDataSourceParameterParser.cs
- SchemaAttDef.cs
- XmlSchemaValidationException.cs
- XmlTextWriter.cs
- XsltException.cs
- BlobPersonalizationState.cs
- LineProperties.cs
- XmlC14NWriter.cs
- RoleExceptions.cs
- XmlReader.cs
- KeyedQueue.cs
- CommandConverter.cs