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
- CompilerTypeWithParams.cs
- errorpatternmatcher.cs
- DetailsViewPagerRow.cs
- UnsafeNativeMethods.cs
- EncryptedReference.cs
- GridLengthConverter.cs
- TypeValidationEventArgs.cs
- AssemblyAttributesGoHere.cs
- UriTemplateTrieLocation.cs
- TraceSection.cs
- ProxyAttribute.cs
- DataGridComponentEditor.cs
- SortKey.cs
- RectangleF.cs
- PromptBuilder.cs
- GridViewRow.cs
- ISAPIRuntime.cs
- GlyphInfoList.cs
- ADConnectionHelper.cs
- XmlDocumentFragment.cs
- ObjectPersistData.cs
- CodeIdentifiers.cs
- ValidatingCollection.cs
- BridgeDataReader.cs
- OpacityConverter.cs
- ThaiBuddhistCalendar.cs
- ColorDialog.cs
- NameTable.cs
- WhitespaceSignificantCollectionAttribute.cs
- EditingMode.cs
- precedingquery.cs
- SqlProfileProvider.cs
- RenamedEventArgs.cs
- Brush.cs
- ItemsChangedEventArgs.cs
- StatementContext.cs
- XPathAxisIterator.cs
- TextDecoration.cs
- EdmRelationshipRoleAttribute.cs
- CodeDefaultValueExpression.cs
- ThemeableAttribute.cs
- EnumUnknown.cs
- BitFlagsGenerator.cs
- WebDescriptionAttribute.cs
- AttachedAnnotationChangedEventArgs.cs
- HtmlCalendarAdapter.cs
- SQLMoney.cs
- DragDropHelper.cs
- XmlEventCache.cs
- EntityException.cs
- Manipulation.cs
- LinearGradientBrush.cs
- TreeNodeBindingCollection.cs
- MarginCollapsingState.cs
- AuthorizationRule.cs
- IconBitmapDecoder.cs
- ButtonRenderer.cs
- Int32Rect.cs
- ErrorHandlerModule.cs
- SettingsBindableAttribute.cs
- OleDbError.cs
- ConfigurationSectionCollection.cs
- TCPClient.cs
- PageParserFilter.cs
- DataServiceQueryProvider.cs
- BCLDebug.cs
- HttpWriter.cs
- HttpProfileGroupBase.cs
- ActiveXSerializer.cs
- ZipIOCentralDirectoryBlock.cs
- ShapeTypeface.cs
- DocumentGrid.cs
- TextBox.cs
- InternalDispatchObject.cs
- TextLine.cs
- FormViewUpdatedEventArgs.cs
- SchemaImporterExtension.cs
- StorageFunctionMapping.cs
- SubpageParagraph.cs
- WindowsStartMenu.cs
- UIntPtr.cs
- AttributeUsageAttribute.cs
- TCPClient.cs
- TrackingMemoryStreamFactory.cs
- WindowsEditBox.cs
- ExpandSegment.cs
- SQLInt16Storage.cs
- BinaryObjectInfo.cs
- TagPrefixAttribute.cs
- LayoutExceptionEventArgs.cs
- ControlCachePolicy.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TextFindEngine.cs
- ConfigPathUtility.cs
- PresentationAppDomainManager.cs
- WindowsFormsSynchronizationContext.cs
- ThreadAttributes.cs
- InputScopeAttribute.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- BamlBinaryWriter.cs