Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- SessionEndingEventArgs.cs
- AssociationTypeEmitter.cs
- CommandConverter.cs
- Completion.cs
- Hashtable.cs
- DeobfuscatingStream.cs
- GreenMethods.cs
- FilteredAttributeCollection.cs
- WindowsListViewItem.cs
- FontSizeConverter.cs
- DeviceFilterDictionary.cs
- DoubleSumAggregationOperator.cs
- WorkflowRuntimeService.cs
- Calendar.cs
- ImageListUtils.cs
- InternalTypeHelper.cs
- UniqueContractNameValidationBehavior.cs
- PrintControllerWithStatusDialog.cs
- DataGridTextBoxColumn.cs
- WindowsListView.cs
- InputGestureCollection.cs
- Rijndael.cs
- SqlDataReader.cs
- ErrorWrapper.cs
- GACIdentityPermission.cs
- SafeFileHandle.cs
- ExtensionSimplifierMarkupObject.cs
- TagNameToTypeMapper.cs
- CodeAccessSecurityEngine.cs
- TypeExtensions.cs
- NetworkCredential.cs
- GeneralTransform3DGroup.cs
- LayoutTableCell.cs
- GeneralTransform3DGroup.cs
- ClientFormsAuthenticationCredentials.cs
- ViewCellRelation.cs
- X509Extension.cs
- SessionStateUtil.cs
- ConstructorBuilder.cs
- TextEditorTables.cs
- AutoResizedEvent.cs
- DataGridViewCellCollection.cs
- DateTimeConverter2.cs
- TraceContext.cs
- WindowsRebar.cs
- WebPartEditorOkVerb.cs
- VisualProxy.cs
- UriParserTemplates.cs
- DataGridViewRowsAddedEventArgs.cs
- ClonableStack.cs
- SQLBoolean.cs
- TableStyle.cs
- FrameworkTextComposition.cs
- SecurityAppliedMessage.cs
- DefaultObjectMappingItemCollection.cs
- GridPattern.cs
- ServerValidateEventArgs.cs
- PageCodeDomTreeGenerator.cs
- CellIdBoolean.cs
- DocumentViewerConstants.cs
- RewritingValidator.cs
- WebPartTracker.cs
- XmlSchemaObjectTable.cs
- ZoneIdentityPermission.cs
- WorkflowView.cs
- ThicknessAnimationBase.cs
- XmlSerializationGeneratedCode.cs
- DictionaryContent.cs
- ResourceProviderFactory.cs
- PLINQETWProvider.cs
- SessionPageStateSection.cs
- DataObjectFieldAttribute.cs
- PropertyStore.cs
- ExpressionLink.cs
- PickDesigner.xaml.cs
- PlanCompiler.cs
- DocumentViewer.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SqlParameterizer.cs
- ParentQuery.cs
- BitmapFrame.cs
- UnaryQueryOperator.cs
- MouseEventArgs.cs
- DbConnectionPoolIdentity.cs
- DefaultParameterValueAttribute.cs
- WebPartEditVerb.cs
- StreamWriter.cs
- _Win32.cs
- HandlerMappingMemo.cs
- ContentElementCollection.cs
- LogExtent.cs
- RenderDataDrawingContext.cs
- DrawingGroup.cs
- SolidColorBrush.cs
- GetWinFXPath.cs
- MulticastOption.cs
- DataSourceView.cs
- SmiTypedGetterSetter.cs
- ProxyAttribute.cs
- FontEmbeddingManager.cs