Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CodeExpressionCollection.cs
- WorkflowInstanceQuery.cs
- RunInstallerAttribute.cs
- DataTableCollection.cs
- ArrayExtension.cs
- ConversionContext.cs
- UrlAuthFailedErrorFormatter.cs
- ArgumentFixer.cs
- ChannelParameterCollection.cs
- SqlFunctionAttribute.cs
- MeasurementDCInfo.cs
- EntityDataSourceValidationException.cs
- DesignerUtils.cs
- TextRunTypographyProperties.cs
- SqlDataAdapter.cs
- SqlDependencyUtils.cs
- AssemblyHash.cs
- BufferModesCollection.cs
- ConnectionStringsExpressionBuilder.cs
- PermissionSetTriple.cs
- AmbientLight.cs
- CryptoConfig.cs
- BuildResult.cs
- DataPointer.cs
- HwndMouseInputProvider.cs
- AsyncStreamReader.cs
- BCryptHashAlgorithm.cs
- SEHException.cs
- ViewBox.cs
- ModuleBuilder.cs
- SortedDictionary.cs
- SqlGenerator.cs
- ClientSettingsStore.cs
- formatter.cs
- AttributeExtensions.cs
- HealthMonitoringSectionHelper.cs
- ResolveMatchesCD1.cs
- DataRecord.cs
- ResourceDisplayNameAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HttpPostedFile.cs
- ProbeDuplex11AsyncResult.cs
- ToolStripOverflowButton.cs
- FilteredSchemaElementLookUpTable.cs
- SqlGenericUtil.cs
- Knowncolors.cs
- COM2Properties.cs
- Interlocked.cs
- XmlSchemaValidationException.cs
- AdornerLayer.cs
- UInt64.cs
- AbsoluteQuery.cs
- DropShadowBitmapEffect.cs
- PropertyStore.cs
- SchemaContext.cs
- ConstraintManager.cs
- WindowsListViewGroupHelper.cs
- PerspectiveCamera.cs
- WebServiceAttribute.cs
- OdbcEnvironmentHandle.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlWellformedWriter.cs
- ToolStripButton.cs
- RestClientProxyHandler.cs
- OutOfProcStateClientManager.cs
- DataGridLength.cs
- StringDictionaryCodeDomSerializer.cs
- TextSearch.cs
- _LocalDataStoreMgr.cs
- ScalarOps.cs
- WebPartRestoreVerb.cs
- CodeTypeParameterCollection.cs
- ContentOperations.cs
- DrawingDrawingContext.cs
- MdiWindowListStrip.cs
- ObjectPersistData.cs
- DbCommandTree.cs
- XPathParser.cs
- SyndicationItemFormatter.cs
- DataControlCommands.cs
- X509ChainElement.cs
- CertificateElement.cs
- ConfigurationManagerInternal.cs
- EmptyCollection.cs
- TextEditorSpelling.cs
- GAC.cs
- WebPartConnection.cs
- Content.cs
- RegexParser.cs
- LogFlushAsyncResult.cs
- NumberSubstitution.cs
- ThreadStaticAttribute.cs
- QueryStringConverter.cs
- Registry.cs
- XPathEmptyIterator.cs
- XamlReaderConstants.cs
- ContentPresenter.cs
- TextStore.cs
- RuntimeResourceSet.cs
- AuthorizationContext.cs