Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WebPartPersonalization.cs
- CharEnumerator.cs
- PropertyHelper.cs
- sitestring.cs
- WebFormsRootDesigner.cs
- DeclarativeCatalogPart.cs
- ConfigPathUtility.cs
- GlobalizationAssembly.cs
- xamlnodes.cs
- FixedTextBuilder.cs
- Route.cs
- DataDesignUtil.cs
- AppDomain.cs
- CannotUnloadAppDomainException.cs
- UndirectedGraph.cs
- Vector3DValueSerializer.cs
- InfoCardConstants.cs
- SoapBinding.cs
- GAC.cs
- TimeStampChecker.cs
- PrintPageEvent.cs
- X509Certificate.cs
- AlignmentXValidation.cs
- Guid.cs
- JsonFaultDetail.cs
- RequiredFieldValidator.cs
- UnsafeNativeMethods.cs
- MissingFieldException.cs
- EventLogEntryCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- ReadOnlyCollection.cs
- PropertyGeneratedEventArgs.cs
- PhoneCall.cs
- SafeNativeMemoryHandle.cs
- LocalizeDesigner.cs
- ObjectDataSourceFilteringEventArgs.cs
- ScriptManager.cs
- ReadOnlyCollectionBase.cs
- StringResourceManager.cs
- RequestDescription.cs
- RSACryptoServiceProvider.cs
- Point.cs
- DoubleLinkList.cs
- ScriptRegistrationManager.cs
- AtomicFile.cs
- RelatedView.cs
- RemoteWebConfigurationHostServer.cs
- ProcessStartInfo.cs
- TcpConnectionPoolSettings.cs
- Floater.cs
- RangeValueProviderWrapper.cs
- DashStyles.cs
- ReflectTypeDescriptionProvider.cs
- PerformanceCounterCategory.cs
- QueryOperator.cs
- DrawListViewItemEventArgs.cs
- CacheEntry.cs
- HttpValueCollection.cs
- CalculatedColumn.cs
- RequestNavigateEventArgs.cs
- SafeHandles.cs
- XmlWriterSettings.cs
- StorageMappingItemCollection.cs
- NamespaceDecl.cs
- SoapAttributes.cs
- ResourceSetExpression.cs
- StoryFragments.cs
- sqlmetadatafactory.cs
- SqlParameterCollection.cs
- SystemIdentity.cs
- Codec.cs
- TagPrefixInfo.cs
- RichTextBox.cs
- Wizard.cs
- ContentPlaceHolder.cs
- XmlWrappingWriter.cs
- DesignerTransactionCloseEvent.cs
- XmlCodeExporter.cs
- FixedNode.cs
- GenericPrincipal.cs
- EventSetter.cs
- SettingsPropertyNotFoundException.cs
- Thumb.cs
- activationcontext.cs
- FontFamily.cs
- LicenseManager.cs
- DataBinder.cs
- OuterGlowBitmapEffect.cs
- DataGridItem.cs
- BooleanToVisibilityConverter.cs
- SchemaImporterExtensionElementCollection.cs
- Overlapped.cs
- TextSchema.cs
- SystemParameters.cs
- ProfilePropertyNameValidator.cs
- GenericWebPart.cs
- AnalyzedTree.cs
- Int16Converter.cs
- StackSpiller.Bindings.cs
- BitmapEffectDrawingContextState.cs