Code:
/ FX-1434 / FX-1434 / 1.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
- Control.cs
- DataGridViewHitTestInfo.cs
- SqlConnectionFactory.cs
- OrderedDictionary.cs
- TrustManager.cs
- DATA_BLOB.cs
- TargetConverter.cs
- LabelLiteral.cs
- SafeSecurityHandles.cs
- ComAdminInterfaces.cs
- CompiledXpathExpr.cs
- MenuBindingsEditor.cs
- ITextView.cs
- StringPropertyBuilder.cs
- PolicyManager.cs
- IPHostEntry.cs
- FileDialog.cs
- Guid.cs
- AuthenticationConfig.cs
- ToolStripItemClickedEventArgs.cs
- DecoratedNameAttribute.cs
- GeneralTransform2DTo3D.cs
- Semaphore.cs
- TypeInitializationException.cs
- PasswordTextNavigator.cs
- DiagnosticsConfigurationHandler.cs
- EllipticalNodeOperations.cs
- PersistChildrenAttribute.cs
- NestPullup.cs
- DecimalConstantAttribute.cs
- CustomAttributeFormatException.cs
- KeyValuePairs.cs
- OlePropertyStructs.cs
- COAUTHINFO.cs
- TimeStampChecker.cs
- Pair.cs
- EntityClassGenerator.cs
- CacheSection.cs
- CollectionViewProxy.cs
- UseAttributeSetsAction.cs
- UnhandledExceptionEventArgs.cs
- CatchDesigner.xaml.cs
- CodeAttributeArgumentCollection.cs
- SqlFunctionAttribute.cs
- DateTimePicker.cs
- _SslState.cs
- SystemIPv6InterfaceProperties.cs
- ComponentResourceManager.cs
- CodeObjectCreateExpression.cs
- CodeMethodReturnStatement.cs
- Activator.cs
- SelectionRangeConverter.cs
- DataControlLinkButton.cs
- OSFeature.cs
- CalendarDateChangedEventArgs.cs
- LogLogRecord.cs
- RelationshipSet.cs
- OutputCacheEntry.cs
- TailPinnedEventArgs.cs
- QuadraticBezierSegment.cs
- GeometryModel3D.cs
- FontInfo.cs
- MethodRental.cs
- ReturnType.cs
- DataFormats.cs
- ByteAnimation.cs
- XsltArgumentList.cs
- MimeTypeAttribute.cs
- SecondaryIndexList.cs
- PropertyRef.cs
- ProviderCommandInfoUtils.cs
- FontFamily.cs
- SerTrace.cs
- MethodAccessException.cs
- ParagraphVisual.cs
- MostlySingletonList.cs
- ColumnMapProcessor.cs
- DBPropSet.cs
- Evaluator.cs
- ExpressionParser.cs
- coordinator.cs
- XmlHierarchicalDataSourceView.cs
- ToolboxCategoryItems.cs
- UInt32.cs
- DocumentReference.cs
- LinqDataSourceContextEventArgs.cs
- SudsWriter.cs
- DataGridSortingEventArgs.cs
- SpellerStatusTable.cs
- TableLayoutCellPaintEventArgs.cs
- SkipQueryOptionExpression.cs
- DocumentOrderComparer.cs
- EntityDataSourceSelectedEventArgs.cs
- ThemeDirectoryCompiler.cs
- SqlEnums.cs
- DesignerLabelAdapter.cs
- TreeNodeStyleCollection.cs
- PropertyGridCommands.cs
- AutoGeneratedFieldProperties.cs
- LambdaCompiler.Unary.cs