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
- SystemTcpConnection.cs
- TextServicesCompartmentEventSink.cs
- PublisherIdentityPermission.cs
- BrowserCapabilitiesFactory.cs
- NumericUpDownAcceleration.cs
- ResolveCriteria11.cs
- DCSafeHandle.cs
- ValidationPropertyAttribute.cs
- ChtmlImageAdapter.cs
- nulltextcontainer.cs
- TransformationRules.cs
- ExpressionPrefixAttribute.cs
- DataViewManager.cs
- SystemUdpStatistics.cs
- DataGridViewRowStateChangedEventArgs.cs
- PrePostDescendentsWalker.cs
- SqlCommandBuilder.cs
- ElementProxy.cs
- MultiTrigger.cs
- ViewGenResults.cs
- FlowchartSizeFeature.cs
- RevocationPoint.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- FontFaceLayoutInfo.cs
- SmiEventStream.cs
- XmlAttributes.cs
- CheckBoxBaseAdapter.cs
- WbmpConverter.cs
- AuthenticationModuleElementCollection.cs
- CultureTable.cs
- TabItem.cs
- WebConfigurationHost.cs
- QilCloneVisitor.cs
- Parser.cs
- QueryCacheEntry.cs
- SHA1CryptoServiceProvider.cs
- InvalidEnumArgumentException.cs
- TypeReference.cs
- RuleRefElement.cs
- ReflectionServiceProvider.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- SchemaTableOptionalColumn.cs
- DispatcherTimer.cs
- DataGridViewCellPaintingEventArgs.cs
- DataServicePagingProviderWrapper.cs
- ConfigXmlCDataSection.cs
- VirtualPath.cs
- SignedXml.cs
- EntityParameter.cs
- AttributeData.cs
- SqlDataSource.cs
- DataViewManagerListItemTypeDescriptor.cs
- TransactionState.cs
- DictionaryBase.cs
- FlowDocumentFormatter.cs
- TableLayoutColumnStyleCollection.cs
- XmlNamedNodeMap.cs
- KeyEventArgs.cs
- DiffuseMaterial.cs
- ServerType.cs
- SiteMapDesignerDataSourceView.cs
- TemplateInstanceAttribute.cs
- AccessDataSource.cs
- ScrollableControl.cs
- ClaimSet.cs
- ComponentDispatcherThread.cs
- DragEvent.cs
- MetaChildrenColumn.cs
- SqlEnums.cs
- CacheEntry.cs
- CounterCreationData.cs
- CodeEventReferenceExpression.cs
- QuerySelectOp.cs
- HandlerFactoryWrapper.cs
- BitmapCodecInfoInternal.cs
- _Events.cs
- ChannelServices.cs
- NativeWindow.cs
- IChannel.cs
- EditableRegion.cs
- RichTextBoxConstants.cs
- UriExt.cs
- DependencyStoreSurrogate.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SynchronizationContext.cs
- RootContext.cs
- ArgumentOutOfRangeException.cs
- PageAdapter.cs
- ObjectQueryState.cs
- login.cs
- XmlComplianceUtil.cs
- DataSourceComponent.cs
- ConstrainedDataObject.cs
- ClrPerspective.cs
- XmlImplementation.cs
- WebPartConnectionsCancelVerb.cs
- LinkButton.cs
- TextSchema.cs
- SerialErrors.cs
- StructuralObject.cs