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
- DecimalAnimationBase.cs
- BamlBinaryReader.cs
- DetailsViewInsertedEventArgs.cs
- StringCollection.cs
- BrushValueSerializer.cs
- EncoderExceptionFallback.cs
- NetworkInformationException.cs
- ProviderConnectionPointCollection.cs
- DependencyPropertyKey.cs
- TaskbarItemInfo.cs
- PasswordPropertyTextAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- ContextInformation.cs
- HttpMethodConstraint.cs
- HtmlInputText.cs
- HttpHandlerActionCollection.cs
- FixedSOMPageConstructor.cs
- Context.cs
- AnimationClockResource.cs
- ImageCodecInfoPrivate.cs
- DataGridViewElement.cs
- AccessViolationException.cs
- SystemUnicastIPAddressInformation.cs
- StyleBamlRecordReader.cs
- XmlMemberMapping.cs
- TdsEnums.cs
- FileDataSourceCache.cs
- RtfControls.cs
- SortDescriptionCollection.cs
- DocumentPropertiesDialog.cs
- XmlSerializerSection.cs
- DbCommandTree.cs
- RuntimeConfig.cs
- SqlNodeAnnotation.cs
- PermissionSetTriple.cs
- UrlPath.cs
- WrapPanel.cs
- NonBatchDirectoryCompiler.cs
- GridViewDeleteEventArgs.cs
- XD.cs
- ResourceDisplayNameAttribute.cs
- DataGridBoolColumn.cs
- SQLStringStorage.cs
- GridViewColumnCollection.cs
- FormsAuthenticationModule.cs
- OpCopier.cs
- _CacheStreams.cs
- ItemCheckedEvent.cs
- BrowserCapabilitiesCompiler.cs
- EventArgs.cs
- SubqueryRules.cs
- SqlProvider.cs
- Focus.cs
- StartUpEventArgs.cs
- SQLBoolean.cs
- ItemCheckEvent.cs
- WebServiceErrorEvent.cs
- TextEditorSpelling.cs
- IISMapPath.cs
- CopyCodeAction.cs
- SelectionProcessor.cs
- WebCategoryAttribute.cs
- ButtonColumn.cs
- RemotingException.cs
- DBDataPermission.cs
- Debug.cs
- CollectionDataContract.cs
- EncoderBestFitFallback.cs
- Symbol.cs
- TableRowGroup.cs
- Matrix.cs
- AssemblyAttributesGoHere.cs
- DesignerCategoryAttribute.cs
- CollectionChangeEventArgs.cs
- ButtonFlatAdapter.cs
- Panel.cs
- BindingExpressionBase.cs
- TextEffectResolver.cs
- CollectionChangedEventManager.cs
- TreeViewImageIndexConverter.cs
- ConnectionPoint.cs
- UIElement3D.cs
- FieldToken.cs
- InputScopeNameConverter.cs
- CacheSection.cs
- AbstractExpressions.cs
- BuildResultCache.cs
- ScrollData.cs
- ActivityDesignerAccessibleObject.cs
- LinqExpressionNormalizer.cs
- FileUtil.cs
- UriExt.cs
- PointIndependentAnimationStorage.cs
- IndentedWriter.cs
- TableLayoutStyle.cs
- SerializationObjectManager.cs
- VScrollBar.cs
- WebPartConnectionsConfigureVerb.cs
- DataGridViewComboBoxEditingControl.cs
- ReadOnlyAttribute.cs