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
- SynchronizationHandlesCodeDomSerializer.cs
- DocumentAutomationPeer.cs
- XmlUtil.cs
- ModuleBuilder.cs
- NamespaceDecl.cs
- AcceleratedTokenProviderState.cs
- CheckBox.cs
- TextDecorationLocationValidation.cs
- CodeFieldReferenceExpression.cs
- XmlSchemaRedefine.cs
- OperatingSystem.cs
- MetafileHeaderWmf.cs
- XPathDescendantIterator.cs
- DesigntimeLicenseContext.cs
- SynchronizedInputProviderWrapper.cs
- AnimationException.cs
- InlineObject.cs
- EventTask.cs
- Base64WriteStateInfo.cs
- HttpRuntimeSection.cs
- CodeDefaultValueExpression.cs
- Match.cs
- RoleServiceManager.cs
- KnownColorTable.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- WindowsRebar.cs
- MouseButtonEventArgs.cs
- CannotUnloadAppDomainException.cs
- BaseTemplateParser.cs
- LogLogRecordHeader.cs
- TextServicesContext.cs
- AtomicFile.cs
- IndexedGlyphRun.cs
- PrintPageEvent.cs
- ConfigXmlWhitespace.cs
- MSAAEventDispatcher.cs
- UIPermission.cs
- ComponentCollection.cs
- SingleObjectCollection.cs
- UidManager.cs
- TerminatingOperationBehavior.cs
- SortableBindingList.cs
- DesignerObject.cs
- XmlFormatReaderGenerator.cs
- TileModeValidation.cs
- Pen.cs
- APCustomTypeDescriptor.cs
- FileDetails.cs
- OneOfElement.cs
- DataSourceNameHandler.cs
- ConnectionPoint.cs
- PeerNearMe.cs
- InkPresenterAutomationPeer.cs
- SQLGuidStorage.cs
- Vector3DAnimation.cs
- SafeCoTaskMem.cs
- AsymmetricSecurityProtocolFactory.cs
- _SingleItemRequestCache.cs
- ValueUtilsSmi.cs
- Int32AnimationUsingKeyFrames.cs
- NGCPageContentSerializerAsync.cs
- FormViewCommandEventArgs.cs
- ControlPager.cs
- CompositionTarget.cs
- GridEntryCollection.cs
- OSEnvironmentHelper.cs
- TypefaceMap.cs
- AutomationTextAttribute.cs
- DocumentReferenceCollection.cs
- ReversePositionQuery.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- RadioButtonPopupAdapter.cs
- ArgumentDirectionHelper.cs
- ZipIOLocalFileBlock.cs
- COM2IDispatchConverter.cs
- FlowDocumentPaginator.cs
- InternalConfigSettingsFactory.cs
- ComplexObject.cs
- SecurityElement.cs
- GifBitmapDecoder.cs
- ListItemCollection.cs
- LassoHelper.cs
- XmlSchemaObjectCollection.cs
- ModelTypeConverter.cs
- HttpListenerRequestUriBuilder.cs
- EntityPropertyMappingAttribute.cs
- IsolatedStorageFile.cs
- XmlStreamedByteStreamReader.cs
- RequestQueue.cs
- DateTimeStorage.cs
- MatrixAnimationUsingPath.cs
- SerializationSectionGroup.cs
- HierarchicalDataSourceControl.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SerialStream.cs
- FormViewRow.cs
- ExceptionCollection.cs
- DateTime.cs
- AsyncOperation.cs
- HwndSource.cs