Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TraceContextRecord.cs
- SQLDecimalStorage.cs
- InstallerTypeAttribute.cs
- SqlUserDefinedTypeAttribute.cs
- ValueUtilsSmi.cs
- CompilationLock.cs
- RenderDataDrawingContext.cs
- DataRowView.cs
- CommonRemoteMemoryBlock.cs
- DataGridViewColumnCollection.cs
- SQLBoolean.cs
- DataGridViewRowConverter.cs
- MULTI_QI.cs
- Knowncolors.cs
- HttpHandlerAction.cs
- XmlSchemaAttributeGroup.cs
- AsyncContentLoadedEventArgs.cs
- ConnectionStringSettingsCollection.cs
- ProxyManager.cs
- StaticTextPointer.cs
- TargetPerspective.cs
- ExpressionParser.cs
- ChangePasswordAutoFormat.cs
- ListView.cs
- UserControl.cs
- ServiceOperationParameter.cs
- FormsAuthenticationUser.cs
- Utils.cs
- DataSourceXmlElementAttribute.cs
- AssemblyBuilderData.cs
- BuildProvider.cs
- Decimal.cs
- Simplifier.cs
- EntityContainerAssociationSet.cs
- Int32KeyFrameCollection.cs
- ControlBindingsConverter.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DeflateInput.cs
- SqlSelectStatement.cs
- DrawToolTipEventArgs.cs
- CroppedBitmap.cs
- RoutedEventConverter.cs
- _SslSessionsCache.cs
- ConnectionProviderAttribute.cs
- TabletDevice.cs
- SystemTcpStatistics.cs
- XmlDataSourceNodeDescriptor.cs
- TraceLog.cs
- ArraySet.cs
- ScaleTransform.cs
- FrameworkRichTextComposition.cs
- DataGridAddNewRow.cs
- TrackingServices.cs
- MethodInfo.cs
- ResourcesChangeInfo.cs
- ExpressionBuilder.cs
- InnerItemCollectionView.cs
- ChangeInterceptorAttribute.cs
- AssociationEndMember.cs
- ListViewDeleteEventArgs.cs
- Misc.cs
- SizeKeyFrameCollection.cs
- AudioFormatConverter.cs
- DoubleLink.cs
- WebConfigurationHostFileChange.cs
- HScrollBar.cs
- LabelEditEvent.cs
- CultureData.cs
- Latin1Encoding.cs
- SizeKeyFrameCollection.cs
- DecoderNLS.cs
- SafeCoTaskMem.cs
- SettingsPropertyNotFoundException.cs
- BrushValueSerializer.cs
- XsltConvert.cs
- CancellableEnumerable.cs
- PropertyAccessVisitor.cs
- WebSysDefaultValueAttribute.cs
- SessionSwitchEventArgs.cs
- MenuTracker.cs
- GroupByQueryOperator.cs
- SqlStatistics.cs
- IndividualDeviceConfig.cs
- DataGridViewSelectedColumnCollection.cs
- BaseParser.cs
- CapiNative.cs
- GatewayIPAddressInformationCollection.cs
- EditorPartChrome.cs
- DesignerActionMethodItem.cs
- SecurityPolicyVersion.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DataViewListener.cs
- MsmqIntegrationMessagePool.cs
- GcHandle.cs
- WebControlToolBoxItem.cs
- ReadOnlyHierarchicalDataSource.cs
- PropertyPath.cs
- FrameworkElement.cs
- PathFigureCollection.cs
- TextBreakpoint.cs