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
- HtmlInputImage.cs
- Assert.cs
- SchemaContext.cs
- IntermediatePolicyValidator.cs
- ErrorTableItemStyle.cs
- HitTestFilterBehavior.cs
- AppLevelCompilationSectionCache.cs
- HelloOperation11AsyncResult.cs
- DesignerAttributeInfo.cs
- FastEncoder.cs
- StdValidatorsAndConverters.cs
- ObjectRef.cs
- GeometryDrawing.cs
- TextTreeFixupNode.cs
- cache.cs
- PrintDialog.cs
- WriteFileContext.cs
- WhiteSpaceTrimStringConverter.cs
- WebServiceClientProxyGenerator.cs
- FtpWebRequest.cs
- SqlBulkCopy.cs
- XmlWriterDelegator.cs
- Inflater.cs
- PermissionToken.cs
- DataGridHelper.cs
- TransformerInfoCollection.cs
- BaseCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- HostingEnvironmentException.cs
- SqlBuilder.cs
- WsdlInspector.cs
- ProfileManager.cs
- EncryptRequest.cs
- ImageBrush.cs
- TransportManager.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- StreamSecurityUpgradeProvider.cs
- PageCatalogPart.cs
- DomainUpDown.cs
- MsmqDecodeHelper.cs
- PropertyTabChangedEvent.cs
- Context.cs
- DispatcherHooks.cs
- UnmanagedMemoryStream.cs
- MultiDataTrigger.cs
- ValidationRule.cs
- OdbcConnectionOpen.cs
- GridViewAutomationPeer.cs
- SQLInt32Storage.cs
- XmlValueConverter.cs
- ReflectionUtil.cs
- BuildManager.cs
- PrivilegeNotHeldException.cs
- ColumnReorderedEventArgs.cs
- X509Certificate.cs
- ScriptResourceInfo.cs
- AdRotator.cs
- PrimitiveType.cs
- Symbol.cs
- StorageMappingFragment.cs
- Cursors.cs
- DataGridRow.cs
- SqlHelper.cs
- WindowsFormsHostAutomationPeer.cs
- ProcessModuleDesigner.cs
- PtsContext.cs
- mediaclock.cs
- HyperLink.cs
- BitmapVisualManager.cs
- AdjustableArrowCap.cs
- DbConnectionInternal.cs
- ProjectionRewriter.cs
- OlePropertyStructs.cs
- OnOperation.cs
- FontWeights.cs
- ListBindableAttribute.cs
- CacheForPrimitiveTypes.cs
- IPAddress.cs
- ArithmeticLiteral.cs
- Encoder.cs
- RNGCryptoServiceProvider.cs
- PartManifestEntry.cs
- AttachInfo.cs
- EntityTypeEmitter.cs
- SmuggledIUnknown.cs
- ContourSegment.cs
- MappingException.cs
- SQLString.cs
- SerialPinChanges.cs
- PTUtility.cs
- _DomainName.cs
- CacheHelper.cs
- SafeRightsManagementHandle.cs
- TextSegment.cs
- LineProperties.cs
- BaseTreeIterator.cs
- AppSecurityManager.cs
- TableAdapterManagerGenerator.cs
- PriorityRange.cs
- HttpException.cs