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
- DesignerSerializationVisibilityAttribute.cs
- DesignerDataConnection.cs
- XmlDictionaryWriter.cs
- TextTreeDeleteContentUndoUnit.cs
- ExcludePathInfo.cs
- DummyDataSource.cs
- ConfigurationLocationCollection.cs
- StrongNamePublicKeyBlob.cs
- DataTableReader.cs
- basecomparevalidator.cs
- Process.cs
- CustomAttributeBuilder.cs
- Quaternion.cs
- DesignerHost.cs
- DataGridViewColumnHeaderCell.cs
- NegotiateStream.cs
- CodeRemoveEventStatement.cs
- AuthenticationModuleElement.cs
- keycontainerpermission.cs
- ProcessHost.cs
- DataServiceResponse.cs
- PointF.cs
- XslNumber.cs
- CheckBoxBaseAdapter.cs
- ImageCodecInfoPrivate.cs
- DataControlImageButton.cs
- ImageUrlEditor.cs
- RawStylusActions.cs
- ProjectionCamera.cs
- DocumentScope.cs
- BrowsableAttribute.cs
- DependencyObject.cs
- EventManager.cs
- Variant.cs
- WindowClosedEventArgs.cs
- Model3DCollection.cs
- CompilationRelaxations.cs
- HttpWebRequestElement.cs
- ScriptControlDescriptor.cs
- GenerateTemporaryAssemblyTask.cs
- BinaryMethodMessage.cs
- TimersDescriptionAttribute.cs
- ObjectToken.cs
- SafeFileMappingHandle.cs
- AutomationEvent.cs
- OdbcParameter.cs
- WmfPlaceableFileHeader.cs
- SolidBrush.cs
- OracleBoolean.cs
- ConfigurationSettings.cs
- WorkflowViewService.cs
- DataGridViewIntLinkedList.cs
- CorePropertiesFilter.cs
- ListenerConfig.cs
- SqlConnectionPoolProviderInfo.cs
- HtmlElementEventArgs.cs
- XmlExceptionHelper.cs
- SafeArchiveContext.cs
- NativeObjectSecurity.cs
- StaticExtensionConverter.cs
- controlskin.cs
- BitmapEffectInputData.cs
- RectAnimationBase.cs
- MatrixAnimationUsingKeyFrames.cs
- ModelItemCollectionImpl.cs
- HatchBrush.cs
- SerializationSectionGroup.cs
- EdmFunction.cs
- OpenFileDialog.cs
- ScriptResourceAttribute.cs
- HtmlInputSubmit.cs
- DateTimeOffset.cs
- BlurEffect.cs
- FontWeight.cs
- MultiPropertyDescriptorGridEntry.cs
- SID.cs
- PeerChannelListener.cs
- BooleanExpr.cs
- StoreItemCollection.Loader.cs
- SourceLineInfo.cs
- SetState.cs
- DragEventArgs.cs
- CodePageUtils.cs
- IndexingContentUnit.cs
- TargetInvocationException.cs
- formatter.cs
- baseaxisquery.cs
- StylusLogic.cs
- PrimaryKeyTypeConverter.cs
- WebPartDisplayModeCollection.cs
- TabPage.cs
- Int32RectValueSerializer.cs
- LinearKeyFrames.cs
- ChtmlTextWriter.cs
- EntityDataSourceWrapper.cs
- FormViewCommandEventArgs.cs
- QueueProcessor.cs
- EdmComplexPropertyAttribute.cs
- VisualTarget.cs
- BatchWriter.cs