Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultPropertyAttribute.cs / 1305376 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- SerializationException.cs
- AttributeQuery.cs
- TileBrush.cs
- QueryInterceptorAttribute.cs
- _IPv6Address.cs
- PropertyReferenceSerializer.cs
- FontStyle.cs
- Inflater.cs
- sqlstateclientmanager.cs
- ActivityDefaults.cs
- DataPager.cs
- DbgUtil.cs
- IntegerValidatorAttribute.cs
- CheckedListBox.cs
- EmptyElement.cs
- Preprocessor.cs
- FixedSOMLineCollection.cs
- FilteredSchemaElementLookUpTable.cs
- FrameworkContentElement.cs
- TdsParserHelperClasses.cs
- ContentType.cs
- ContentDisposition.cs
- DataGridLinkButton.cs
- ConfigurationLockCollection.cs
- WindowHelperService.cs
- ValidatorCompatibilityHelper.cs
- BlurEffect.cs
- Update.cs
- SendOperation.cs
- SafeCoTaskMem.cs
- JumpTask.cs
- IteratorFilter.cs
- TextRenderer.cs
- FontResourceCache.cs
- ToolStripDropDownClosedEventArgs.cs
- CapabilitiesSection.cs
- PathGeometry.cs
- PackWebRequestFactory.cs
- SafeLibraryHandle.cs
- TagPrefixAttribute.cs
- PropertyToken.cs
- PersistChildrenAttribute.cs
- WorkflowExecutor.cs
- ThreadExceptionEvent.cs
- MetadataArtifactLoaderResource.cs
- PortCache.cs
- BehaviorDragDropEventArgs.cs
- MemberDescriptor.cs
- RoleGroup.cs
- DataGridSortCommandEventArgs.cs
- TextRange.cs
- StringComparer.cs
- PagedDataSource.cs
- SmtpTransport.cs
- Model3DGroup.cs
- SizeAnimation.cs
- Transactions.cs
- UInt64Storage.cs
- connectionpool.cs
- DbDataRecord.cs
- coordinator.cs
- UserPreferenceChangingEventArgs.cs
- TemplateContentLoader.cs
- SafeArrayTypeMismatchException.cs
- X509Logo.cs
- GrabHandleGlyph.cs
- BooleanExpr.cs
- DiscardableAttribute.cs
- CommandField.cs
- KoreanLunisolarCalendar.cs
- IdentityReference.cs
- GC.cs
- InstanceLockLostException.cs
- RotateTransform3D.cs
- XmlLanguage.cs
- WorkItem.cs
- PathFigureCollectionValueSerializer.cs
- WebHttpEndpoint.cs
- dataprotectionpermissionattribute.cs
- DataGridView.cs
- BrowserInteropHelper.cs
- WebScriptClientGenerator.cs
- BindToObject.cs
- URLAttribute.cs
- BinaryOperationBinder.cs
- LicenseManager.cs
- TrustLevelCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- HtmlWindow.cs
- PrintPreviewControl.cs
- NameSpaceEvent.cs
- CellIdBoolean.cs
- TreeBuilderBamlTranslator.cs
- EntityCollection.cs
- HotSpot.cs
- Vector3D.cs
- DbParameterCollection.cs
- BackgroundFormatInfo.cs
- UIntPtr.cs
- ChannelServices.cs