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
- _DisconnectOverlappedAsyncResult.cs
- httpserverutility.cs
- ResourcePermissionBase.cs
- RowParagraph.cs
- Knowncolors.cs
- DataProtection.cs
- DataGridTextBoxColumn.cs
- OracleCommand.cs
- DeobfuscatingStream.cs
- SplitContainer.cs
- StylusDownEventArgs.cs
- SinglePageViewer.cs
- DeviceSpecific.cs
- DataGridViewUtilities.cs
- TextTreeUndoUnit.cs
- DataGridViewRowPrePaintEventArgs.cs
- CurrentTimeZone.cs
- OptimizedTemplateContentHelper.cs
- WindowsListViewScroll.cs
- BitmapMetadata.cs
- SecurityElementBase.cs
- PingOptions.cs
- ExecutionEngineException.cs
- ExpressionConverter.cs
- FixedDocument.cs
- IDispatchConstantAttribute.cs
- ACE.cs
- EventHandlerList.cs
- PenThreadPool.cs
- DateTimeValueSerializerContext.cs
- DbExpressionVisitor_TResultType.cs
- NotifyInputEventArgs.cs
- StartUpEventArgs.cs
- Evidence.cs
- NavigationService.cs
- Material.cs
- PreservationFileWriter.cs
- ControlParameter.cs
- VariableQuery.cs
- NameObjectCollectionBase.cs
- CookieHandler.cs
- TransformConverter.cs
- SpellerError.cs
- Identifier.cs
- RepeaterItemCollection.cs
- DBConnection.cs
- MenuItemStyleCollectionEditor.cs
- ObjectReaderCompiler.cs
- SocketElement.cs
- ICspAsymmetricAlgorithm.cs
- TextEvent.cs
- Delay.cs
- PopupEventArgs.cs
- IndexedEnumerable.cs
- XsdValidatingReader.cs
- WebHttpElement.cs
- RoutingUtilities.cs
- Margins.cs
- VariantWrapper.cs
- MembershipSection.cs
- XappLauncher.cs
- SystemKeyConverter.cs
- XmlFormatExtensionAttribute.cs
- ExtendedTransformFactory.cs
- TypeDescriptionProvider.cs
- WebServiceHostFactory.cs
- DataGridViewSelectedCellCollection.cs
- ExpressionEditorSheet.cs
- XmlSerializableReader.cs
- VariableQuery.cs
- SqlDataSourceCustomCommandPanel.cs
- KeyGesture.cs
- DataServiceRequestException.cs
- SelectedPathEditor.cs
- CalendarItem.cs
- Stacktrace.cs
- DataSourceGeneratorException.cs
- Transform.cs
- PropertyGeneratedEventArgs.cs
- KeyboardEventArgs.cs
- ApplicationHost.cs
- UnsafeNativeMethods.cs
- Nullable.cs
- TabletDevice.cs
- MsmqIntegrationBindingElement.cs
- HMACSHA384.cs
- SamlSecurityTokenAuthenticator.cs
- HTMLTagNameToTypeMapper.cs
- AssemblyName.cs
- XamlParser.cs
- FullTrustAssembly.cs
- RequestQueue.cs
- PackageRelationshipCollection.cs
- SeparatorAutomationPeer.cs
- RequestCacheEntry.cs
- IPipelineRuntime.cs
- ArrayWithOffset.cs
- validation.cs
- ICspAsymmetricAlgorithm.cs
- ObjectDataSourceFilteringEventArgs.cs