Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CheckBoxPopupAdapter.cs
- Executor.cs
- FileDialog.cs
- TableParagraph.cs
- SystemWebCachingSectionGroup.cs
- PasswordBox.cs
- MTConfigUtil.cs
- StorageEntityTypeMapping.cs
- ProgressBarAutomationPeer.cs
- StrongTypingException.cs
- LayoutTable.cs
- ForeignConstraint.cs
- PageContentAsyncResult.cs
- ReferenceAssemblyAttribute.cs
- StrokeCollection2.cs
- ContextProperty.cs
- ListMarkerSourceInfo.cs
- DecoratedNameAttribute.cs
- SynchronizationLockException.cs
- CapabilitiesSection.cs
- Pens.cs
- GraphicsState.cs
- XMLUtil.cs
- ReaderContextStackData.cs
- XamlFrame.cs
- TableCellAutomationPeer.cs
- SqlDependencyListener.cs
- TextEditorParagraphs.cs
- HMACMD5.cs
- KernelTypeValidation.cs
- AssociationTypeEmitter.cs
- DriveNotFoundException.cs
- LongCountAggregationOperator.cs
- SourceFilter.cs
- JournalNavigationScope.cs
- ZipIOCentralDirectoryFileHeader.cs
- HuffModule.cs
- Triplet.cs
- XmlMapping.cs
- WindowShowOrOpenTracker.cs
- RecognitionEventArgs.cs
- Int16AnimationBase.cs
- datacache.cs
- BinarySerializer.cs
- precedingsibling.cs
- ParameterDataSourceExpression.cs
- WebRequestModuleElementCollection.cs
- Instrumentation.cs
- ProfileBuildProvider.cs
- ParallelEnumerableWrapper.cs
- StateMachine.cs
- HyperLinkField.cs
- SqlErrorCollection.cs
- CompositeClientFormatter.cs
- StringTraceRecord.cs
- CodeIdentifier.cs
- SharedDp.cs
- Deflater.cs
- EntryIndex.cs
- AsnEncodedData.cs
- EpmHelper.cs
- DynamicRendererThreadManager.cs
- WpfWebRequestHelper.cs
- ValidationEventArgs.cs
- DataGridTablesFactory.cs
- LineServices.cs
- HttpRequestMessageProperty.cs
- LoginDesignerUtil.cs
- Schema.cs
- StructuralCache.cs
- HttpContext.cs
- CodeIdentifiers.cs
- UserControlParser.cs
- SiteMap.cs
- ProfileProvider.cs
- EmbossBitmapEffect.cs
- TextTreeTextBlock.cs
- MappingSource.cs
- ProfileServiceManager.cs
- UnmanagedMemoryStream.cs
- MdiWindowListStrip.cs
- SchemaMapping.cs
- StaticResourceExtension.cs
- DataObject.cs
- RestHandler.cs
- FontConverter.cs
- Deserializer.cs
- SafeArrayRankMismatchException.cs
- XmlSchemaAppInfo.cs
- TraceContext.cs
- _BufferOffsetSize.cs
- ControlPaint.cs
- MultipartIdentifier.cs
- XAMLParseException.cs
- ComboBoxAutomationPeer.cs
- PrintPreviewControl.cs
- CustomLineCap.cs
- ConfigurationSettings.cs
- CompressionTransform.cs
- System.Data_BID.cs