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
- SendMessageRecord.cs
- ObjectAnimationUsingKeyFrames.cs
- AuthorizationRule.cs
- PropertyChangedEventArgs.cs
- DrawingCollection.cs
- Span.cs
- MinimizableAttributeTypeConverter.cs
- ResourceWriter.cs
- XmlDigitalSignatureProcessor.cs
- RowSpanVector.cs
- Fault.cs
- SiteMapNodeCollection.cs
- ExpressionEditorSheet.cs
- ButtonBase.cs
- SerializableAttribute.cs
- AvTrace.cs
- CodeTypeParameterCollection.cs
- AccessorTable.cs
- FileSystemInfo.cs
- ParameterDataSourceExpression.cs
- FormViewRow.cs
- SiteMapPathDesigner.cs
- Command.cs
- SoapServerMethod.cs
- FacetValueContainer.cs
- HwndSource.cs
- EdmSchemaAttribute.cs
- CodeDirectoryCompiler.cs
- TemplateControlBuildProvider.cs
- ConstrainedDataObject.cs
- configsystem.cs
- RuntimeResourceSet.cs
- TraceHandler.cs
- BitmapEffectState.cs
- ConnectionOrientedTransportElement.cs
- RestClientProxyHandler.cs
- DataControlFieldCell.cs
- ResourceDescriptionAttribute.cs
- TreeIterators.cs
- RepeaterItemEventArgs.cs
- OracleParameterBinding.cs
- StrokeSerializer.cs
- SequenceDesigner.cs
- CancellationHandlerDesigner.cs
- BStrWrapper.cs
- ListViewUpdateEventArgs.cs
- MarkupWriter.cs
- ZoomPercentageConverter.cs
- controlskin.cs
- RootContext.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlSerializerAssemblyAttribute.cs
- ApplicationServiceHelper.cs
- FieldAccessException.cs
- PasswordTextNavigator.cs
- DataReceivedEventArgs.cs
- CollectionView.cs
- CryptoHelper.cs
- Barrier.cs
- EntityParameter.cs
- WebReferencesBuildProvider.cs
- RoleServiceManager.cs
- ParallelLoopState.cs
- TypeName.cs
- DbConnectionPoolCounters.cs
- WeakRefEnumerator.cs
- Verify.cs
- PerformanceCounter.cs
- RawStylusInputCustomDataList.cs
- MergablePropertyAttribute.cs
- RootBrowserWindow.cs
- WindowsFormsHelpers.cs
- BitArray.cs
- EventManager.cs
- CodeDOMUtility.cs
- OutputCacheSection.cs
- OptimalTextSource.cs
- TemplateColumn.cs
- EventSinkHelperWriter.cs
- ScriptingAuthenticationServiceSection.cs
- DeclaredTypeElement.cs
- TraceData.cs
- ProxyElement.cs
- DocumentsTrace.cs
- BaseProcessProtocolHandler.cs
- Translator.cs
- documentsequencetextview.cs
- Debug.cs
- Lasso.cs
- StsCommunicationException.cs
- hebrewshape.cs
- ConfigXmlAttribute.cs
- StandardRuntimeEnumValidator.cs
- XmlSchemaAnnotated.cs
- TraceHandlerErrorFormatter.cs
- RectangleHotSpot.cs
- UniqueIdentifierService.cs
- JpegBitmapDecoder.cs
- MetadataSerializer.cs
- ServiceOperation.cs