Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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
- ConstraintEnumerator.cs
- HuffmanTree.cs
- PlanCompilerUtil.cs
- SortedList.cs
- Operator.cs
- DurableTimerExtension.cs
- ParameterToken.cs
- OrCondition.cs
- BackStopAuthenticationModule.cs
- KeyPressEvent.cs
- DocumentAutomationPeer.cs
- PtsCache.cs
- CharacterBuffer.cs
- FontFamilyIdentifier.cs
- GeometryCombineModeValidation.cs
- ListItem.cs
- WindowsTokenRoleProvider.cs
- PingReply.cs
- XamlFrame.cs
- DataQuery.cs
- MediaCommands.cs
- AdornerDecorator.cs
- BitmapEffectInput.cs
- Group.cs
- Geometry.cs
- OdbcFactory.cs
- OneOfTypeConst.cs
- SafeRightsManagementSessionHandle.cs
- ViewGenerator.cs
- RoleBoolean.cs
- smtppermission.cs
- RegionInfo.cs
- BaseAsyncResult.cs
- ActiveXSite.cs
- FunctionImportMapping.cs
- Attachment.cs
- WindowsGraphicsCacheManager.cs
- ProcessHost.cs
- IsolationInterop.cs
- EventLogEntryCollection.cs
- WaitForChangedResult.cs
- MobileFormsAuthentication.cs
- MappedMetaModel.cs
- DetailsViewCommandEventArgs.cs
- TypedDatasetGenerator.cs
- MergePropertyDescriptor.cs
- GlobalAllocSafeHandle.cs
- ReaderWriterLockWrapper.cs
- EntityClientCacheEntry.cs
- DocumentAutomationPeer.cs
- CursorConverter.cs
- GradientStop.cs
- XslCompiledTransform.cs
- RuleElement.cs
- SchemaCollectionPreprocessor.cs
- SlotInfo.cs
- ComponentGuaranteesAttribute.cs
- Page.cs
- CompilerParameters.cs
- KeyInterop.cs
- CompModSwitches.cs
- PerformanceCountersElement.cs
- TreeView.cs
- SymbolEqualComparer.cs
- ChangeTracker.cs
- AppSettingsExpressionBuilder.cs
- TableLayoutSettingsTypeConverter.cs
- CacheOutputQuery.cs
- PackWebRequestFactory.cs
- DiscoveryMessageSequence.cs
- BufferedStream.cs
- AssociationEndMember.cs
- MultiView.cs
- SharedConnectionWorkflowTransactionService.cs
- StylusButtonCollection.cs
- TimeoutValidationAttribute.cs
- XmlEventCache.cs
- FixedPageProcessor.cs
- SelectionWordBreaker.cs
- Guid.cs
- NullableDoubleAverageAggregationOperator.cs
- NodeLabelEditEvent.cs
- UIElement3DAutomationPeer.cs
- HttpCacheVary.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- BaseAsyncResult.cs
- SoapSchemaImporter.cs
- XPathNodeList.cs
- TextServicesDisplayAttribute.cs
- BaseContextMenu.cs
- CursorConverter.cs
- DefaultHttpHandler.cs
- WmlSelectionListAdapter.cs
- XmlSchemaInclude.cs
- SmiGettersStream.cs
- CodeSnippetExpression.cs
- GeometryConverter.cs
- ConditionCollection.cs
- ConfigPathUtility.cs
- Splitter.cs