Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CqlQuery.cs
- ClientScriptManagerWrapper.cs
- RawAppCommandInputReport.cs
- ToolStripItemClickedEventArgs.cs
- XmlValidatingReader.cs
- PathFigure.cs
- Helper.cs
- CryptoStream.cs
- Vector3DAnimationBase.cs
- ReflectPropertyDescriptor.cs
- Size.cs
- SynchronizationContext.cs
- ColorAnimationUsingKeyFrames.cs
- DateTimeSerializationSection.cs
- TimeEnumHelper.cs
- RangeContentEnumerator.cs
- ResourcesChangeInfo.cs
- ContentFileHelper.cs
- NullableConverter.cs
- ObjectFullSpanRewriter.cs
- ThicknessKeyFrameCollection.cs
- HtmlTitle.cs
- MasterPageCodeDomTreeGenerator.cs
- AuthorizationRuleCollection.cs
- DependencyPropertyConverter.cs
- FindProgressChangedEventArgs.cs
- ObservableCollectionDefaultValueFactory.cs
- FontDriver.cs
- GenerateHelper.cs
- recordstatescratchpad.cs
- login.cs
- SqlBuffer.cs
- WebBrowserHelper.cs
- ImageMapEventArgs.cs
- CounterNameConverter.cs
- AsyncStreamReader.cs
- IisNotInstalledException.cs
- Run.cs
- WSDualHttpSecurityMode.cs
- MessageBuilder.cs
- LinkClickEvent.cs
- JavaScriptString.cs
- ImportedPolicyConversionContext.cs
- XmlSchemaAttributeGroup.cs
- AesManaged.cs
- CreateParams.cs
- TypedMessageConverter.cs
- SchemaElementDecl.cs
- FrameworkElementFactory.cs
- documentation.cs
- RelatedCurrencyManager.cs
- EventLogConfiguration.cs
- DeferredReference.cs
- EntityModelSchemaGenerator.cs
- CatalogPartChrome.cs
- DocumentXmlWriter.cs
- TreeNode.cs
- Dispatcher.cs
- FixedSOMTable.cs
- X509Extension.cs
- ThemeableAttribute.cs
- GridViewRowEventArgs.cs
- ObjectConverter.cs
- LinqDataSourceView.cs
- RowBinding.cs
- HostingEnvironmentException.cs
- FigureHelper.cs
- RSAPKCS1SignatureFormatter.cs
- updateconfighost.cs
- TaskSchedulerException.cs
- AvTraceDetails.cs
- GridViewRowPresenter.cs
- Listbox.cs
- StringHandle.cs
- WorkflowItemPresenter.cs
- HtmlWindow.cs
- HttpCapabilitiesEvaluator.cs
- PanelStyle.cs
- TypeToken.cs
- OdbcHandle.cs
- AdornerDecorator.cs
- Accessible.cs
- XmlWriter.cs
- XmlValidatingReader.cs
- TabControlAutomationPeer.cs
- DirtyTextRange.cs
- RegistryPermission.cs
- SiteMapProvider.cs
- CacheRequest.cs
- wmiprovider.cs
- DataGridViewAccessibleObject.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- UnionCodeGroup.cs
- XmlText.cs
- StrokeNodeEnumerator.cs
- BinaryCommonClasses.cs
- ConfigUtil.cs
- CompiledELinqQueryState.cs
- BufferedGraphics.cs
- ExpressionBindingCollection.cs