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 / DefaultBindingPropertyAttribute.cs / 1 / DefaultBindingPropertyAttribute.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 DefaultBindingPropertyAttribute : Attribute { private readonly string name; ///Specifies the default binding property for a component. ////// public DefaultBindingPropertyAttribute() { this.name = null; } ////// Initializes a new instance of /// the ///class. /// /// public DefaultBindingPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default binding property for the component this attribute is /// bound to. /// ////// public static readonly DefaultBindingPropertyAttribute Default = new DefaultBindingPropertyAttribute(); public override bool Equals(object obj) { DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute; 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 DefaultBindingPropertyAttribute : Attribute { private readonly string name; ///Specifies the default binding property for a component. ////// public DefaultBindingPropertyAttribute() { this.name = null; } ////// Initializes a new instance of /// the ///class. /// /// public DefaultBindingPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default binding property for the component this attribute is /// bound to. /// ////// public static readonly DefaultBindingPropertyAttribute Default = new DefaultBindingPropertyAttribute(); public override bool Equals(object obj) { DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute; 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
- WindowsSysHeader.cs
- DockPatternIdentifiers.cs
- FileBasedResourceGroveler.cs
- SessionState.cs
- MailWriter.cs
- TranslateTransform.cs
- PropagatorResult.cs
- PagePropertiesChangingEventArgs.cs
- EventLogPermissionEntryCollection.cs
- __Error.cs
- StorageFunctionMapping.cs
- DbParameterHelper.cs
- Listener.cs
- DeviceContext.cs
- LabelEditEvent.cs
- FilterQueryOptionExpression.cs
- XmlBufferReader.cs
- SolidColorBrush.cs
- CodeIdentifier.cs
- TextComposition.cs
- XmlSchemaInfo.cs
- TextProperties.cs
- FrameworkContentElementAutomationPeer.cs
- Stream.cs
- IconBitmapDecoder.cs
- MetadataItemSerializer.cs
- FontResourceCache.cs
- SecurityElement.cs
- XmlElement.cs
- NavigationExpr.cs
- DataGridViewCellFormattingEventArgs.cs
- AppSettingsExpressionEditor.cs
- Condition.cs
- IdentityReference.cs
- DeviceSpecificDialogCachedState.cs
- ImageListImage.cs
- Component.cs
- ManagedWndProcTracker.cs
- BlurEffect.cs
- ComponentEditorForm.cs
- securestring.cs
- Rect3DConverter.cs
- ChineseLunisolarCalendar.cs
- XmlConvert.cs
- Button.cs
- MetabaseServerConfig.cs
- ServiceNameCollection.cs
- TextTabProperties.cs
- IfJoinedCondition.cs
- translator.cs
- HashMembershipCondition.cs
- Constraint.cs
- SQLDecimalStorage.cs
- OleDbParameterCollection.cs
- WebPartCancelEventArgs.cs
- CategoryEditor.cs
- IOThreadTimer.cs
- SHA256Managed.cs
- IgnoreSectionHandler.cs
- XmlLanguageConverter.cs
- OraclePermission.cs
- PoisonMessageException.cs
- RoleGroup.cs
- ContextMenu.cs
- PresentationSource.cs
- GenericPrincipal.cs
- StylusDownEventArgs.cs
- DispatcherSynchronizationContext.cs
- Vector3D.cs
- Timer.cs
- DefaultHttpHandler.cs
- DriveInfo.cs
- PtsPage.cs
- FileSystemEnumerable.cs
- XhtmlBasicImageAdapter.cs
- SqlConnectionStringBuilder.cs
- ScriptResourceAttribute.cs
- HostExecutionContextManager.cs
- DataContractFormatAttribute.cs
- EntityKey.cs
- ColorConvertedBitmapExtension.cs
- GridEntryCollection.cs
- ValidatingCollection.cs
- CmsInterop.cs
- HijriCalendar.cs
- GridViewDeleteEventArgs.cs
- CodeDOMUtility.cs
- ConversionHelper.cs
- SocketException.cs
- ListViewContainer.cs
- DataTableNewRowEvent.cs
- Track.cs
- Select.cs
- RegisteredHiddenField.cs
- DbConnectionPool.cs
- NamespaceTable.cs
- UnsafeNativeMethods.cs
- NamedPipeAppDomainProtocolHandler.cs
- RIPEMD160Managed.cs
- ScriptModule.cs