Code:
/ FX-1434 / FX-1434 / 1.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
- CompositeControl.cs
- SrgsText.cs
- GeneratedView.cs
- NameValuePair.cs
- Parameter.cs
- TabControlEvent.cs
- MdiWindowListItemConverter.cs
- WindowsFormsHostPropertyMap.cs
- BinaryUtilClasses.cs
- SchemaEntity.cs
- Track.cs
- FormattedTextSymbols.cs
- XmlSchemaAnnotation.cs
- ProcessHost.cs
- IResourceProvider.cs
- ScrollChrome.cs
- AxWrapperGen.cs
- brushes.cs
- UriWriter.cs
- EventDescriptorCollection.cs
- SpellCheck.cs
- DataSvcMapFile.cs
- OdbcErrorCollection.cs
- BezierSegment.cs
- SqlDuplicator.cs
- XmlCountingReader.cs
- ipaddressinformationcollection.cs
- ToolStripSplitButton.cs
- _FixedSizeReader.cs
- RangeBaseAutomationPeer.cs
- COM2ExtendedBrowsingHandler.cs
- _TLSstream.cs
- FixedSOMFixedBlock.cs
- RelationshipFixer.cs
- TileBrush.cs
- WindowInteropHelper.cs
- EmptyCollection.cs
- CounterSample.cs
- IndexOutOfRangeException.cs
- ContractDescription.cs
- SemanticValue.cs
- DocumentGrid.cs
- BindingsCollection.cs
- CompilerGeneratedAttribute.cs
- XPathPatternParser.cs
- LineServicesCallbacks.cs
- EnlistmentState.cs
- HttpResponseInternalBase.cs
- NoneExcludedImageIndexConverter.cs
- AttachedAnnotationChangedEventArgs.cs
- PageSettings.cs
- ListControlDataBindingHandler.cs
- WorkItem.cs
- HttpCachePolicy.cs
- TreeViewImageGenerator.cs
- CroppedBitmap.cs
- CodePageEncoding.cs
- ListViewAutomationPeer.cs
- MetaData.cs
- FontSourceCollection.cs
- ServiceAppDomainAssociationProvider.cs
- DataBindingCollection.cs
- DataFormats.cs
- ObjectIDGenerator.cs
- XmlSchemaComplexType.cs
- QueryTaskGroupState.cs
- HtmlImage.cs
- ActivityTypeDesigner.xaml.cs
- HitTestParameters3D.cs
- XamlSerializationHelper.cs
- BinHexEncoding.cs
- XmlHierarchicalDataSourceView.cs
- SslStream.cs
- ImpersonationContext.cs
- BaseTemplateParser.cs
- CodeBinaryOperatorExpression.cs
- SQLResource.cs
- ReceiveMessageContent.cs
- WorkflowItemPresenter.cs
- SmtpException.cs
- OutKeywords.cs
- PopOutPanel.cs
- lengthconverter.cs
- ToolStripItem.cs
- DataGridCaption.cs
- SectionRecord.cs
- _UriTypeConverter.cs
- EntityDataSource.cs
- TextFindEngine.cs
- DataGridViewLinkCell.cs
- IsolationInterop.cs
- Point3DCollection.cs
- XPathNodeInfoAtom.cs
- MatrixCamera.cs
- XmlWriterDelegator.cs
- InputLanguageSource.cs
- PageSettings.cs
- MiniMapControl.xaml.cs
- DefaultValueTypeConverter.cs
- TimeSpanParse.cs