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
- MD5Cng.cs
- WebScriptMetadataMessage.cs
- DependencyObject.cs
- ElementAction.cs
- Selector.cs
- WebExceptionStatus.cs
- Process.cs
- XmlSchemaSimpleContentRestriction.cs
- FunctionMappingTranslator.cs
- CompensationDesigner.cs
- EntityProviderServices.cs
- ButtonFieldBase.cs
- ValidationEventArgs.cs
- SqlFormatter.cs
- DataSet.cs
- ButtonAutomationPeer.cs
- BaseDataBoundControl.cs
- StagingAreaInputItem.cs
- BevelBitmapEffect.cs
- XmlSerializer.cs
- StoreContentChangedEventArgs.cs
- CompositeTypefaceMetrics.cs
- Table.cs
- Restrictions.cs
- LinkConverter.cs
- LessThan.cs
- AdjustableArrowCap.cs
- DashStyle.cs
- Visual3D.cs
- AssemblyCollection.cs
- IndexedWhereQueryOperator.cs
- DataGridComboBoxColumn.cs
- HttpApplication.cs
- BoundField.cs
- BamlMapTable.cs
- DataSourceXmlAttributeAttribute.cs
- InputMethodStateChangeEventArgs.cs
- NotifyInputEventArgs.cs
- PasswordRecoveryAutoFormat.cs
- TransformerConfigurationWizardBase.cs
- TypeConverters.cs
- OpCellTreeNode.cs
- LocatorBase.cs
- ProxyFragment.cs
- UnsafeNativeMethods.cs
- MsmqBindingElementBase.cs
- TreeWalker.cs
- Control.cs
- BaseDataListComponentEditor.cs
- CustomWebEventKey.cs
- SqlDataSourceCache.cs
- SecurityHeaderLayout.cs
- StructuralObject.cs
- Geometry3D.cs
- EntitySetRetriever.cs
- IMembershipProvider.cs
- EdmEntityTypeAttribute.cs
- DataSysAttribute.cs
- Lasso.cs
- ByteRangeDownloader.cs
- StorageBasedPackageProperties.cs
- ConfigurationManagerInternal.cs
- UrlMappingCollection.cs
- CompoundFileReference.cs
- CatalogPartDesigner.cs
- SingleStorage.cs
- StringDictionary.cs
- DynamicRouteExpression.cs
- SystemTcpStatistics.cs
- BuilderElements.cs
- EntityDataSourceState.cs
- AdjustableArrowCap.cs
- AppDomain.cs
- SoapIgnoreAttribute.cs
- Throw.cs
- UnsafeNativeMethods.cs
- XPathNodeIterator.cs
- SafeIUnknown.cs
- ProviderUtil.cs
- SqlInternalConnectionSmi.cs
- SplashScreen.cs
- _HeaderInfoTable.cs
- SafePointer.cs
- FixedTextPointer.cs
- Span.cs
- MetaData.cs
- EntitySqlException.cs
- ConfigurationProperty.cs
- QueryContinueDragEventArgs.cs
- MethodBuilderInstantiation.cs
- Clause.cs
- XamlReader.cs
- COM2TypeInfoProcessor.cs
- ListSortDescription.cs
- SchemaDeclBase.cs
- Rule.cs
- ListView.cs
- RegexInterpreter.cs
- tooltip.cs
- unitconverter.cs