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
- FileDialog_Vista_Interop.cs
- BaseAppDomainProtocolHandler.cs
- ConstructorExpr.cs
- OutputCacheSettings.cs
- ReadingWritingEntityEventArgs.cs
- basevalidator.cs
- ConstantSlot.cs
- PasswordRecoveryAutoFormat.cs
- PrintingPermission.cs
- ProjectionPruner.cs
- MethodExpr.cs
- ProfileEventArgs.cs
- SqlCaseSimplifier.cs
- QilIterator.cs
- DefaultValueAttribute.cs
- HostVisual.cs
- ViewKeyConstraint.cs
- DataGridViewBindingCompleteEventArgs.cs
- CommentEmitter.cs
- OracleException.cs
- SessionStateItemCollection.cs
- XhtmlTextWriter.cs
- ConfigurationValues.cs
- RootDesignerSerializerAttribute.cs
- ReflectionPermission.cs
- ProcessManager.cs
- DynamicFilter.cs
- RegistryDataKey.cs
- FrameworkElement.cs
- documentsequencetextcontainer.cs
- BamlCollectionHolder.cs
- Filter.cs
- AppDomainCompilerProxy.cs
- Switch.cs
- SatelliteContractVersionAttribute.cs
- PathSegment.cs
- FileDataSourceCache.cs
- ListBase.cs
- SqlSelectStatement.cs
- Paragraph.cs
- DataGridCell.cs
- ClockGroup.cs
- DefaultExpressionVisitor.cs
- SubMenuStyle.cs
- PlanCompilerUtil.cs
- GridPattern.cs
- ProfilePropertySettings.cs
- RemoteDebugger.cs
- ToolStripItemImageRenderEventArgs.cs
- GroupByExpressionRewriter.cs
- Command.cs
- CategoryAttribute.cs
- FixedSchema.cs
- HelpKeywordAttribute.cs
- DetailsViewPageEventArgs.cs
- ManagementObjectSearcher.cs
- DependencyPropertyChangedEventArgs.cs
- ExtensionQuery.cs
- PaperSize.cs
- StatusBarPanelClickEvent.cs
- AuthenticationConfig.cs
- RecognizerInfo.cs
- SystemUnicastIPAddressInformation.cs
- WebPartActionVerb.cs
- IsolatedStorageFileStream.cs
- UIntPtr.cs
- XslCompiledTransform.cs
- HtmlElementErrorEventArgs.cs
- DPTypeDescriptorContext.cs
- HtmlInputHidden.cs
- SymLanguageVendor.cs
- InstanceDataCollectionCollection.cs
- CreateWorkflowOwnerCommand.cs
- HandlerWithFactory.cs
- LoginView.cs
- ManifestSignatureInformation.cs
- UInt64.cs
- ApplicationHost.cs
- DescendantOverDescendantQuery.cs
- CustomCredentialPolicy.cs
- BatchParser.cs
- CallbackDebugBehavior.cs
- WebPart.cs
- ActivationArguments.cs
- XmlAttributeCollection.cs
- ToolBarButtonDesigner.cs
- HtmlInputCheckBox.cs
- TableRow.cs
- CultureTable.cs
- BitStream.cs
- SqlProvider.cs
- SystemIPv6InterfaceProperties.cs
- WorkflowApplicationTerminatedException.cs
- _Semaphore.cs
- PlatformCulture.cs
- CalendarDateRange.cs
- cryptoapiTransform.cs
- EtwTrace.cs
- DesignTimeParseData.cs
- UInt64.cs