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
- PreviewPageInfo.cs
- XmlSchemaDocumentation.cs
- PaginationProgressEventArgs.cs
- NavigatorOutput.cs
- FixUp.cs
- ToolStripItemCollection.cs
- Mapping.cs
- GridViewCellAutomationPeer.cs
- SqlUnionizer.cs
- TabControlDesigner.cs
- ClockController.cs
- SplineQuaternionKeyFrame.cs
- AppSettingsExpressionBuilder.cs
- MembershipSection.cs
- KnownTypesHelper.cs
- RawAppCommandInputReport.cs
- _TimerThread.cs
- ConfigurationLocation.cs
- ReliableOutputSessionChannel.cs
- ExtenderControl.cs
- Funcletizer.cs
- InstancePersistenceContext.cs
- GlobalizationSection.cs
- SocketPermission.cs
- AspCompat.cs
- EnumConverter.cs
- SendKeys.cs
- XsltConvert.cs
- input.cs
- DoubleUtil.cs
- GridViewSortEventArgs.cs
- SmiEventSink_Default.cs
- SqlNotificationRequest.cs
- TraversalRequest.cs
- XmlParserContext.cs
- Renderer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- GeometryGroup.cs
- CodeTypeDelegate.cs
- BooleanAnimationUsingKeyFrames.cs
- Section.cs
- ArgIterator.cs
- AutomationIdentifierGuids.cs
- ProxyWebPartManager.cs
- ConfigXmlElement.cs
- HttpFileCollectionBase.cs
- TextTreeFixupNode.cs
- Pkcs9Attribute.cs
- AmbientValueAttribute.cs
- MaskedTextBox.cs
- SettingsBindableAttribute.cs
- ExpressionBinding.cs
- RegexMatch.cs
- ListControl.cs
- OdbcEnvironment.cs
- Light.cs
- listitem.cs
- MetadataHelper.cs
- Ipv6Element.cs
- MSAANativeProvider.cs
- TypeConstant.cs
- XamlTypeMapper.cs
- QueueProcessor.cs
- CustomBindingCollectionElement.cs
- FacetDescription.cs
- ImageAttributes.cs
- CodeArrayCreateExpression.cs
- FontFamilyIdentifier.cs
- NestPullup.cs
- IndexedSelectQueryOperator.cs
- WindowsListViewItemCheckBox.cs
- IOException.cs
- CardSpaceSelector.cs
- LineVisual.cs
- ZipIOLocalFileHeader.cs
- EnumerableRowCollectionExtensions.cs
- MobileComponentEditorPage.cs
- ImportDesigner.xaml.cs
- SqlDuplicator.cs
- DialogResultConverter.cs
- RunWorkerCompletedEventArgs.cs
- SequenceDesigner.cs
- FutureFactory.cs
- MessageHeaderAttribute.cs
- Attributes.cs
- SectionUpdates.cs
- FileDialogCustomPlaces.cs
- SiteMapProvider.cs
- securestring.cs
- NGCSerializerAsync.cs
- FaultPropagationRecord.cs
- FontDriver.cs
- ReaderWriterLock.cs
- EventSinkHelperWriter.cs
- _ConnectionGroup.cs
- TextBoxRenderer.cs
- DataRow.cs
- UIElement3D.cs
- Stack.cs
- ThicknessAnimationBase.cs