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
- WorkflowItemsPresenter.cs
- DataColumnChangeEvent.cs
- EventProvider.cs
- DocumentGridPage.cs
- AssemblyCache.cs
- InputScope.cs
- DataGridViewRowCancelEventArgs.cs
- StorageInfo.cs
- NativeCppClassAttribute.cs
- Subtree.cs
- ScalarRestriction.cs
- Evidence.cs
- RelatedEnd.cs
- Regex.cs
- NativeMethods.cs
- HighlightVisual.cs
- SqlCommandAsyncResult.cs
- XslException.cs
- SuppressMergeCheckAttribute.cs
- SynchronizationLockException.cs
- LinqDataSourceUpdateEventArgs.cs
- PatternMatcher.cs
- TemplateBindingExpressionConverter.cs
- SetIterators.cs
- ComponentFactoryHelpers.cs
- UrlPath.cs
- Crc32Helper.cs
- XmlDocumentType.cs
- WindowProviderWrapper.cs
- TypeConverter.cs
- VirtualDirectoryMapping.cs
- XomlCompilerResults.cs
- XmlJsonReader.cs
- ServiceModelStringsVersion1.cs
- DragStartedEventArgs.cs
- FormViewDeleteEventArgs.cs
- Root.cs
- BinHexDecoder.cs
- EventListener.cs
- FlowDocumentPage.cs
- BitmapCodecInfo.cs
- CatchBlock.cs
- ByteAnimationUsingKeyFrames.cs
- ClientOptions.cs
- HostingEnvironment.cs
- TrackingMemoryStream.cs
- processwaithandle.cs
- XmlnsCache.cs
- MgmtConfigurationRecord.cs
- InvokeBase.cs
- ObjRef.cs
- GridViewCommandEventArgs.cs
- CustomErrorCollection.cs
- ImageSource.cs
- ProbeMatchesMessage11.cs
- DataTemplateSelector.cs
- DataSourceNameHandler.cs
- BooleanAnimationBase.cs
- ContextInformation.cs
- SafeRightsManagementEnvironmentHandle.cs
- StringValidator.cs
- BaseValidator.cs
- EventLog.cs
- UrlMappingCollection.cs
- CompilerTypeWithParams.cs
- XmlBinaryReader.cs
- VoiceObjectToken.cs
- TcpClientSocketManager.cs
- FrameworkPropertyMetadata.cs
- TypeConverter.cs
- SqlDuplicator.cs
- AppDomainAttributes.cs
- XamlReaderHelper.cs
- ConfigViewGenerator.cs
- QilBinary.cs
- LinqDataSource.cs
- HttpCapabilitiesBase.cs
- XmlException.cs
- DataGridPageChangedEventArgs.cs
- CodeTypeConstructor.cs
- SqlDataSourceCommandEventArgs.cs
- InstanceCompleteException.cs
- Size3DConverter.cs
- Soap11ServerProtocol.cs
- Pts.cs
- EdmScalarPropertyAttribute.cs
- XmlUtf8RawTextWriter.cs
- QilUnary.cs
- ProfileModule.cs
- DbCommandDefinition.cs
- SQLDecimal.cs
- CannotUnloadAppDomainException.cs
- QueryMatcher.cs
- ImportCatalogPart.cs
- DataFieldConverter.cs
- ParagraphResult.cs
- ListViewTableRow.cs
- SizeKeyFrameCollection.cs
- CurrentChangedEventManager.cs
- SHA1Managed.cs