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
- CmsInterop.cs
- UnsafeNativeMethods.cs
- Select.cs
- RowTypeElement.cs
- XmlText.cs
- MdImport.cs
- GridViewAutomationPeer.cs
- MatrixValueSerializer.cs
- CompensatableSequenceActivity.cs
- NGCSerializer.cs
- Helpers.cs
- HttpResponse.cs
- TextEvent.cs
- HasCopySemanticsAttribute.cs
- PrintEvent.cs
- TargetException.cs
- NameValuePermission.cs
- CollectionDataContractAttribute.cs
- XmlSchemaAttributeGroup.cs
- DynamicResourceExtension.cs
- ResourceDictionaryCollection.cs
- WebCategoryAttribute.cs
- CalendarButtonAutomationPeer.cs
- Control.cs
- FixedElement.cs
- ManipulationInertiaStartingEventArgs.cs
- WindowVisualStateTracker.cs
- SamlAdvice.cs
- WebControlsSection.cs
- QueryContinueDragEvent.cs
- CodePropertyReferenceExpression.cs
- Operator.cs
- ArgumentNullException.cs
- StatusStrip.cs
- LogWriteRestartAreaAsyncResult.cs
- ManipulationPivot.cs
- CaseStatement.cs
- CustomCredentialPolicy.cs
- ProbeMatchesCD1.cs
- OracleDataAdapter.cs
- HttpBrowserCapabilitiesWrapper.cs
- DynamicField.cs
- RemoteX509AsymmetricSecurityKey.cs
- LogReserveAndAppendState.cs
- BulletedList.cs
- RequestTimeoutManager.cs
- Calendar.cs
- MenuAutomationPeer.cs
- LinkButton.cs
- FloaterBaseParagraph.cs
- LostFocusEventManager.cs
- Typeface.cs
- SamlDelegatingWriter.cs
- ConfigurationSectionGroup.cs
- DispatcherFrame.cs
- ToolboxCategoryItems.cs
- LeafCellTreeNode.cs
- CustomAttribute.cs
- TemplateEditingFrame.cs
- ElementHost.cs
- ClrProviderManifest.cs
- UrlMappingCollection.cs
- IFlowDocumentViewer.cs
- PromptBuilder.cs
- AutoCompleteStringCollection.cs
- HtmlInputControl.cs
- MetadataArtifactLoaderResource.cs
- XmlSerializerSection.cs
- WindowsRichEditRange.cs
- LookupBindingPropertiesAttribute.cs
- DataGridViewDataErrorEventArgs.cs
- WindowsToolbarItemAsMenuItem.cs
- RegexGroupCollection.cs
- TextAutomationPeer.cs
- DesignConnection.cs
- FolderNameEditor.cs
- HideDisabledControlAdapter.cs
- CachedPathData.cs
- AbandonedMutexException.cs
- WebPartTransformerAttribute.cs
- BitArray.cs
- ControlCachePolicy.cs
- UriTemplateClientFormatter.cs
- Storyboard.cs
- DoubleKeyFrameCollection.cs
- WebPartMovingEventArgs.cs
- MutableAssemblyCacheEntry.cs
- MetadataCache.cs
- ItemList.cs
- cookie.cs
- IntegerValidatorAttribute.cs
- adornercollection.cs
- StateBag.cs
- RawKeyboardInputReport.cs
- KeyValueInternalCollection.cs
- GraphicsPathIterator.cs
- BooleanKeyFrameCollection.cs
- ScalarType.cs
- Config.cs
- WebInvokeAttribute.cs