Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1305376 / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HandlerBase.cs
- ExpressionLink.cs
- DictionaryContent.cs
- OpenTypeMethods.cs
- MarshalDirectiveException.cs
- Component.cs
- ProgressBar.cs
- SafeBitVector32.cs
- TemplateBindingExtensionConverter.cs
- OleDbParameterCollection.cs
- WmlLinkAdapter.cs
- Mutex.cs
- ParameterElement.cs
- StylusPointPropertyInfo.cs
- ParallelTimeline.cs
- DictionaryChange.cs
- WebBrowserHelper.cs
- PixelShader.cs
- ChannelServices.cs
- InkCanvasAutomationPeer.cs
- WhitespaceReader.cs
- ImageAttributes.cs
- Image.cs
- DependencyProperty.cs
- AssemblyLoader.cs
- MetadataItemSerializer.cs
- ComboBoxAutomationPeer.cs
- GeneralTransform3DCollection.cs
- AuthorizationSection.cs
- CellRelation.cs
- ValidationHelper.cs
- EntityAdapter.cs
- StandardToolWindows.cs
- TraceHandler.cs
- PackageStore.cs
- datacache.cs
- DisplayMemberTemplateSelector.cs
- CompiledRegexRunnerFactory.cs
- TypeBrowser.xaml.cs
- XmlNotation.cs
- ListBoxAutomationPeer.cs
- InvalidProgramException.cs
- Vector.cs
- XmlSchemaImport.cs
- QilScopedVisitor.cs
- WebPartTransformer.cs
- _FixedSizeReader.cs
- UpdateCommand.cs
- ResourceSet.cs
- Debugger.cs
- XmlCDATASection.cs
- DynamicResourceExtensionConverter.cs
- SqlUtils.cs
- HandledMouseEvent.cs
- Substitution.cs
- Constants.cs
- StorageTypeMapping.cs
- ValueTypeFixupInfo.cs
- DeclarativeCatalogPart.cs
- rsa.cs
- AssemblyInfo.cs
- ServiceHostFactory.cs
- CompiledIdentityConstraint.cs
- ListItem.cs
- EntityReference.cs
- CodeDomSerializerBase.cs
- DataList.cs
- TranslateTransform3D.cs
- EntityCommandExecutionException.cs
- SmiEventStream.cs
- XamlGridLengthSerializer.cs
- SingletonChannelAcceptor.cs
- XpsThumbnail.cs
- IndexedGlyphRun.cs
- SubMenuStyle.cs
- JpegBitmapDecoder.cs
- AppliedDeviceFiltersEditor.cs
- WeakReferenceList.cs
- IssuedTokensHeader.cs
- SqlDataRecord.cs
- XmlSchemaComplexContent.cs
- ViewKeyConstraint.cs
- FormDocumentDesigner.cs
- XdrBuilder.cs
- SerTrace.cs
- FontStyle.cs
- CodeTypeOfExpression.cs
- HttpResponseInternalWrapper.cs
- ObjectSerializerFactory.cs
- BaseTemplateBuildProvider.cs
- IItemProperties.cs
- BinHexDecoder.cs
- SmtpReplyReaderFactory.cs
- Cursor.cs
- LinearGradientBrush.cs
- PathSegment.cs
- SecurityHeaderTokenResolver.cs
- NewItemsContextMenuStrip.cs
- TableItemPatternIdentifiers.cs
- FontFamilyValueSerializer.cs