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
- ListItemViewControl.cs
- DependencyPropertyKind.cs
- SqlRecordBuffer.cs
- QuaternionConverter.cs
- StringUtil.cs
- DataGridAddNewRow.cs
- TraceData.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TextParagraph.cs
- DefaultMemberAttribute.cs
- KeyGestureValueSerializer.cs
- DynamicEndpointElement.cs
- EntityContainerEntitySetDefiningQuery.cs
- KeyboardNavigation.cs
- AffineTransform3D.cs
- IndexedGlyphRun.cs
- RequestQueryParser.cs
- GlobalizationAssembly.cs
- PointAnimationBase.cs
- ListViewAutomationPeer.cs
- SimpleRecyclingCache.cs
- EntityDataSourceChangingEventArgs.cs
- _NestedMultipleAsyncResult.cs
- DependencyProperty.cs
- XamlFilter.cs
- SessionEndingEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- ExtractedStateEntry.cs
- URIFormatException.cs
- LockedActivityGlyph.cs
- CreateUserWizardAutoFormat.cs
- HttpCookiesSection.cs
- InvokeBinder.cs
- Char.cs
- DrawingVisual.cs
- ArgumentOutOfRangeException.cs
- NativeMethods.cs
- XmlUtil.cs
- TreeBuilder.cs
- SyntaxCheck.cs
- RadialGradientBrush.cs
- SHA512.cs
- PageFunction.cs
- WindowsPen.cs
- URL.cs
- Update.cs
- GroupLabel.cs
- Reference.cs
- SwitchAttribute.cs
- SettingsContext.cs
- HostSecurityManager.cs
- StrongNameUtility.cs
- CategoryGridEntry.cs
- ValueUtilsSmi.cs
- CodeExpressionStatement.cs
- XmlAttributeCache.cs
- Listen.cs
- SizeAnimationClockResource.cs
- ContractsBCL.cs
- GeometryCombineModeValidation.cs
- ModulesEntry.cs
- UpdateManifestForBrowserApplication.cs
- RoleGroupCollection.cs
- SortQuery.cs
- Cloud.cs
- FamilyMap.cs
- LogicalExpr.cs
- PartialClassGenerationTask.cs
- TextOptions.cs
- ClientScriptManager.cs
- SecurityDocument.cs
- MethodExpr.cs
- VectorValueSerializer.cs
- CodeArrayIndexerExpression.cs
- ListenerConstants.cs
- BrowserDefinitionCollection.cs
- AssemblySettingAttributes.cs
- DataSourceExpressionCollection.cs
- DataMemberConverter.cs
- EncodingStreamWrapper.cs
- WebPartConnectionCollection.cs
- SqlInternalConnection.cs
- SystemParameters.cs
- DescendentsWalker.cs
- messageonlyhwndwrapper.cs
- SettingsPropertyValueCollection.cs
- HostedNamedPipeTransportManager.cs
- JobDuplex.cs
- Vector.cs
- WorkflowItemsPresenter.cs
- WebPartCollection.cs
- RootBrowserWindowProxy.cs
- ColumnBinding.cs
- _SSPIWrapper.cs
- WebColorConverter.cs
- GridSplitter.cs
- AnchoredBlock.cs
- TextCharacters.cs
- CacheManager.cs
- SQLBoolean.cs