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
- InstancePersistence.cs
- SymbolType.cs
- GridEntry.cs
- SetterBase.cs
- ArrangedElementCollection.cs
- BaseProcessor.cs
- Soap.cs
- MarginsConverter.cs
- RunInstallerAttribute.cs
- FileDataSource.cs
- ContainerParaClient.cs
- LockCookie.cs
- MDIWindowDialog.cs
- FrameworkElementFactoryMarkupObject.cs
- CurrentChangedEventManager.cs
- AccessibleObject.cs
- _ProxyChain.cs
- TreeBuilderXamlTranslator.cs
- GraphicsPathIterator.cs
- ObjectList.cs
- PropertyInformation.cs
- TranslateTransform3D.cs
- ChannelServices.cs
- RegexRunner.cs
- SpinWait.cs
- MessageSecurityOverMsmq.cs
- DesignerTextWriter.cs
- TypeCodeDomSerializer.cs
- SystemException.cs
- WeakReadOnlyCollection.cs
- METAHEADER.cs
- PassportAuthenticationModule.cs
- ControlPropertyNameConverter.cs
- BitmapPalette.cs
- RequestCache.cs
- HttpContextServiceHost.cs
- sqlstateclientmanager.cs
- DataGridViewRowPrePaintEventArgs.cs
- FixedTextContainer.cs
- ClientScriptItemCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- XmlComment.cs
- FocusManager.cs
- CacheHelper.cs
- ResXResourceReader.cs
- DirectoryInfo.cs
- GridSplitter.cs
- TransportOutputChannel.cs
- DebugTraceHelper.cs
- InputMethodStateTypeInfo.cs
- SqlDataSource.cs
- DrawingVisualDrawingContext.cs
- EntityViewGenerator.cs
- _FtpControlStream.cs
- RequiredFieldValidator.cs
- XPathMultyIterator.cs
- TrailingSpaceComparer.cs
- ControlBindingsCollection.cs
- SchemaSetCompiler.cs
- OdbcInfoMessageEvent.cs
- DebugController.cs
- WebPartDisplayModeEventArgs.cs
- GridViewColumnHeaderAutomationPeer.cs
- Soap.cs
- MenuItem.cs
- XAMLParseException.cs
- ColorDialog.cs
- ToolboxItemAttribute.cs
- ReadOnlyAttribute.cs
- GeneralTransform3DTo2D.cs
- SiteOfOriginPart.cs
- SinglePhaseEnlistment.cs
- MaterialGroup.cs
- AssemblyBuilder.cs
- EventDrivenDesigner.cs
- UpdateProgress.cs
- ColumnMapProcessor.cs
- ListArgumentProvider.cs
- HierarchicalDataBoundControlAdapter.cs
- MaskInputRejectedEventArgs.cs
- ColorIndependentAnimationStorage.cs
- FilteredSchemaElementLookUpTable.cs
- DetailsViewUpdateEventArgs.cs
- SchemeSettingElementCollection.cs
- MetricEntry.cs
- ExpressionHelper.cs
- OleDbErrorCollection.cs
- SoapIncludeAttribute.cs
- CallTemplateAction.cs
- WindowsScroll.cs
- MatrixAnimationBase.cs
- TextServicesContext.cs
- MatrixConverter.cs
- HtmlWindowCollection.cs
- DelegatingTypeDescriptionProvider.cs
- SingleAnimationBase.cs
- ConfigurationConverterBase.cs
- WebPartMinimizeVerb.cs
- QualificationDataAttribute.cs
- Calendar.cs