Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- DbUpdateCommandTree.cs
- ListSourceHelper.cs
- XPathBuilder.cs
- MatrixAnimationUsingPath.cs
- SafeMemoryMappedViewHandle.cs
- ContextTokenTypeConverter.cs
- DisplayNameAttribute.cs
- DoubleCollection.cs
- ControlCollection.cs
- InnerItemCollectionView.cs
- MemoryMappedFileSecurity.cs
- XamlWriter.cs
- CreateParams.cs
- TemplateKeyConverter.cs
- RegexCompiler.cs
- ListViewCommandEventArgs.cs
- Geometry3D.cs
- DbModificationClause.cs
- PictureBox.cs
- PropertyChangedEventManager.cs
- ToolStripItem.cs
- TextWriterEngine.cs
- ToolboxItem.cs
- TextTreeText.cs
- HttpHandlersSection.cs
- ReadOnlyCollection.cs
- ViewManager.cs
- DefaultAsyncDataDispatcher.cs
- TTSEvent.cs
- RuleConditionDialog.cs
- AssociationTypeEmitter.cs
- CodeSnippetStatement.cs
- InternalRelationshipCollection.cs
- SafeNativeMethods.cs
- ArgumentOutOfRangeException.cs
- AuthStoreRoleProvider.cs
- Condition.cs
- VisualBasicSettings.cs
- ServiceModelPerformanceCounters.cs
- MenuCommand.cs
- BoolExpression.cs
- IntegerValidatorAttribute.cs
- SHA1.cs
- PrintDialogException.cs
- __Filters.cs
- BitArray.cs
- XslTransform.cs
- Evaluator.cs
- FileVersionInfo.cs
- TypeExtension.cs
- TypeExtensionSerializer.cs
- DesignerDataConnection.cs
- TextReader.cs
- DeferredTextReference.cs
- Separator.cs
- ZipIOModeEnforcingStream.cs
- OdbcErrorCollection.cs
- XsltContext.cs
- XPathDocumentNavigator.cs
- EntityDataReader.cs
- CrossSiteScriptingValidation.cs
- ResourceDescriptionAttribute.cs
- BlurBitmapEffect.cs
- ProjectionPruner.cs
- ByteStorage.cs
- DateTimeOffset.cs
- FunctionDetailsReader.cs
- ColumnMap.cs
- HttpHandlerActionCollection.cs
- ScriptReferenceEventArgs.cs
- TextFormatterImp.cs
- Html32TextWriter.cs
- AbsoluteQuery.cs
- XamlReader.cs
- BindingMAnagerBase.cs
- HttpWebResponse.cs
- EventSinkHelperWriter.cs
- SByte.cs
- BufferAllocator.cs
- OneToOneMappingSerializer.cs
- WmfPlaceableFileHeader.cs
- WebServicesSection.cs
- LinqDataSourceStatusEventArgs.cs
- SeverityFilter.cs
- SessionParameter.cs
- Stylesheet.cs
- ScriptMethodAttribute.cs
- ToolStripHighContrastRenderer.cs
- SocketAddress.cs
- Clock.cs
- SByte.cs
- ISCIIEncoding.cs
- WmpBitmapEncoder.cs
- IHttpResponseInternal.cs
- TextControlDesigner.cs
- WinEventTracker.cs
- DataObject.cs
- ProxyHwnd.cs
- BaseCollection.cs
- ClientConfigurationHost.cs