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
- SecureConversationSecurityTokenParameters.cs
- ProfileProvider.cs
- NoneExcludedImageIndexConverter.cs
- NativeActivityFaultContext.cs
- XmlLinkedNode.cs
- Focus.cs
- GeneralTransform3DTo2DTo3D.cs
- FastEncoder.cs
- ViewStateModeByIdAttribute.cs
- FocusWithinProperty.cs
- AuthenticatingEventArgs.cs
- ComponentDispatcher.cs
- SystemPens.cs
- XmlQualifiedName.cs
- ParameterCollection.cs
- GradientBrush.cs
- ContainerParaClient.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlSchemaComplexContent.cs
- RadioButtonPopupAdapter.cs
- EventEntry.cs
- PropertyKey.cs
- ProviderConnectionPoint.cs
- RadioButton.cs
- PageWrapper.cs
- XmlUtil.cs
- TrackingProvider.cs
- NestedContainer.cs
- ThreadExceptionEvent.cs
- DesignerHost.cs
- Win32MouseDevice.cs
- TrackingLocation.cs
- AssemblyCollection.cs
- ListSortDescriptionCollection.cs
- XamlPoint3DCollectionSerializer.cs
- PixelShader.cs
- CookieProtection.cs
- SymmetricSecurityProtocolFactory.cs
- ResponseStream.cs
- ElementUtil.cs
- PeerNearMe.cs
- Inflater.cs
- StorageSetMapping.cs
- ArcSegment.cs
- securitymgrsite.cs
- odbcmetadatacolumnnames.cs
- Listbox.cs
- SuppressedPackageProperties.cs
- HttpCachePolicy.cs
- WhitespaceReader.cs
- HttpRequestContext.cs
- ChannelSinkStacks.cs
- XamlHostingSection.cs
- Dictionary.cs
- BuildManager.cs
- CalendarDay.cs
- HtmlTableCellCollection.cs
- CodeMemberProperty.cs
- LinkDescriptor.cs
- PrintDialog.cs
- ColumnTypeConverter.cs
- ThreadInterruptedException.cs
- GiveFeedbackEventArgs.cs
- StrongTypingException.cs
- GenericWebPart.cs
- SqlClientMetaDataCollectionNames.cs
- OperatingSystemVersionCheck.cs
- ReadOnlyDataSourceView.cs
- ApplicationActivator.cs
- FigureParaClient.cs
- BitmapEffectDrawing.cs
- PlaceHolder.cs
- ScriptIgnoreAttribute.cs
- EventlogProvider.cs
- RetrieveVirtualItemEventArgs.cs
- BaseTemplateCodeDomTreeGenerator.cs
- AtomContentProperty.cs
- AtlasWeb.Designer.cs
- ApplicationDirectoryMembershipCondition.cs
- TimeSpanParse.cs
- ConfigurationStrings.cs
- DataRecordInternal.cs
- cookiecollection.cs
- Matrix3DStack.cs
- PrinterResolution.cs
- ResourceExpressionEditor.cs
- PolygonHotSpot.cs
- SafeFileMappingHandle.cs
- RequestCacheEntry.cs
- ResourceExpressionBuilder.cs
- X509CertificateStore.cs
- BulletedListDesigner.cs
- HttpResponseBase.cs
- SliderAutomationPeer.cs
- ResourceSet.cs
- DataStreamFromComStream.cs
- SmiEventSink_Default.cs
- ServiceDescription.cs
- DataStreams.cs
- PasswordDeriveBytes.cs