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
- MetaColumn.cs
- dataobject.cs
- ManipulationPivot.cs
- CompilerGlobalScopeAttribute.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- basenumberconverter.cs
- ProxyFragment.cs
- Vector3DAnimationUsingKeyFrames.cs
- DPTypeDescriptorContext.cs
- tibetanshape.cs
- VisualTreeUtils.cs
- TextEditorSelection.cs
- GeneratedCodeAttribute.cs
- DataSysAttribute.cs
- ErrorWrapper.cs
- SmtpReplyReaderFactory.cs
- HashHelper.cs
- AstTree.cs
- EmptyControlCollection.cs
- ResXResourceReader.cs
- ApplicationSecurityInfo.cs
- CompareValidator.cs
- OdbcRowUpdatingEvent.cs
- DesignerForm.cs
- LinearKeyFrames.cs
- Image.cs
- StubHelpers.cs
- RightsManagementInformation.cs
- PageRanges.cs
- PasswordDeriveBytes.cs
- MessageQueueInstaller.cs
- AutomationPropertyChangedEventArgs.cs
- MissingSatelliteAssemblyException.cs
- HostingEnvironmentException.cs
- AudioException.cs
- httpstaticobjectscollection.cs
- ReachFixedDocumentSerializer.cs
- MaterialGroup.cs
- MultitargetUtil.cs
- ApplicationContext.cs
- DesignerProperties.cs
- ReachNamespaceInfo.cs
- Serializer.cs
- OleDbEnumerator.cs
- Intellisense.cs
- PeerTransportListenAddressConverter.cs
- WebBrowserNavigatingEventHandler.cs
- RuntimeHandles.cs
- EntityContainerEntitySet.cs
- PersonalizationState.cs
- DynamicQueryStringParameter.cs
- XMLSchema.cs
- HttpApplication.cs
- DataRecordInternal.cs
- TextServicesManager.cs
- GACMembershipCondition.cs
- ScrollItemPattern.cs
- DbBuffer.cs
- XhtmlBasicControlAdapter.cs
- CustomCategoryAttribute.cs
- FileRecordSequence.cs
- OrderingInfo.cs
- CompiledAction.cs
- CodeAttachEventStatement.cs
- PathGeometry.cs
- JpegBitmapEncoder.cs
- PropertyGridView.cs
- WindowsClientCredential.cs
- ServiceMetadataExtension.cs
- CategoryNameCollection.cs
- ProcessStartInfo.cs
- XPathSingletonIterator.cs
- TextBox.cs
- FileClassifier.cs
- TextWriter.cs
- ThicknessAnimationUsingKeyFrames.cs
- TextRangeSerialization.cs
- BrowserCapabilitiesCompiler.cs
- MultilineStringEditor.cs
- GridView.cs
- GenericAuthenticationEventArgs.cs
- X509SecurityTokenAuthenticator.cs
- LinqDataSourceUpdateEventArgs.cs
- ApplicationCommands.cs
- ListBox.cs
- InstallerTypeAttribute.cs
- CounterSample.cs
- CapabilitiesState.cs
- ChannelCacheSettings.cs
- MeasureData.cs
- CompilerResults.cs
- ControlCommandSet.cs
- EventDescriptorCollection.cs
- DPTypeDescriptorContext.cs
- UniqueConstraint.cs
- StylusSystemGestureEventArgs.cs
- Serializer.cs
- IconBitmapDecoder.cs
- BehaviorEditorPart.cs
- HMACSHA512.cs