Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StringDictionaryCodeDomSerializer.cs
- TextBoxRenderer.cs
- CalendarAutoFormatDialog.cs
- PrivilegeNotHeldException.cs
- WindowsScrollBarBits.cs
- Config.cs
- PrintingPermission.cs
- SqlDataSourceQueryEditorForm.cs
- OutputWindow.cs
- Calendar.cs
- ConstrainedGroup.cs
- ScriptMethodAttribute.cs
- ConstantProjectedSlot.cs
- StatusBarItem.cs
- RawKeyboardInputReport.cs
- MouseGestureConverter.cs
- Run.cs
- FilteredDataSetHelper.cs
- WindowsListViewScroll.cs
- GridViewUpdateEventArgs.cs
- PresentationTraceSources.cs
- LockedHandleGlyph.cs
- TablePatternIdentifiers.cs
- COM2TypeInfoProcessor.cs
- WebUtil.cs
- PrintingPermission.cs
- _AutoWebProxyScriptWrapper.cs
- OperandQuery.cs
- FontNamesConverter.cs
- ExpressionUtilities.cs
- SequenceNumber.cs
- Visitors.cs
- ObjectDataSourceDesigner.cs
- SettingsSavedEventArgs.cs
- TransactionFlowOption.cs
- DataGridViewDataErrorEventArgs.cs
- GeneralTransformGroup.cs
- HtmlShim.cs
- PagesSection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SiteMap.cs
- Viewport2DVisual3D.cs
- SpeechDetectedEventArgs.cs
- CompilerParameters.cs
- BamlResourceDeserializer.cs
- NeutralResourcesLanguageAttribute.cs
- TextEvent.cs
- ValidatorCompatibilityHelper.cs
- SystemTcpConnection.cs
- LocatorManager.cs
- TreeBuilder.cs
- DeriveBytes.cs
- updateconfighost.cs
- XmlRawWriter.cs
- DiscreteKeyFrames.cs
- LogWriteRestartAreaState.cs
- HandlerWithFactory.cs
- HttpInputStream.cs
- StorageMappingFragment.cs
- SchemaNamespaceManager.cs
- StylusButtonEventArgs.cs
- RedirectionProxy.cs
- HtmlControlPersistable.cs
- MimeMultiPart.cs
- MarkupWriter.cs
- InternalTypeHelper.cs
- DrawingGroup.cs
- OdbcDataReader.cs
- IHttpResponseInternal.cs
- DataGridViewRowCollection.cs
- NullableFloatMinMaxAggregationOperator.cs
- ConnectionPoint.cs
- DefaultBinder.cs
- DescendantBaseQuery.cs
- MetadataHelper.cs
- ClientScriptItem.cs
- Properties.cs
- ValueChangedEventManager.cs
- CryptoApi.cs
- TransformerConfigurationWizardBase.cs
- TablePatternIdentifiers.cs
- DataGridViewRow.cs
- Tuple.cs
- Visual3DCollection.cs
- WebContext.cs
- TypedReference.cs
- BitStack.cs
- TypeSystemProvider.cs
- TypedElement.cs
- SchemaHelper.cs
- HtmlTable.cs
- FilteredSchemaElementLookUpTable.cs
- CollectionView.cs
- TriggerBase.cs
- BamlBinaryReader.cs
- XmlSchemaObjectTable.cs
- TrustSection.cs
- CompilerLocalReference.cs
- FeatureManager.cs
- ResourceReferenceExpression.cs