Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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
- ContentFilePart.cs
- AsyncContentLoadedEventArgs.cs
- RequestResizeEvent.cs
- RegisteredExpandoAttribute.cs
- DataGridViewColumnCollection.cs
- LabelDesigner.cs
- GZipDecoder.cs
- QilReference.cs
- ReceiveSecurityHeaderEntry.cs
- CheckBoxStandardAdapter.cs
- SqlRetyper.cs
- XmlSortKey.cs
- UriTemplateTable.cs
- IDispatchConstantAttribute.cs
- ToolStripContentPanelDesigner.cs
- MultiView.cs
- DecimalAnimation.cs
- regiisutil.cs
- ExpressionVisitor.cs
- StrongNamePublicKeyBlob.cs
- WebPartCloseVerb.cs
- UpdateCommand.cs
- SQLResource.cs
- UTF32Encoding.cs
- ReturnValue.cs
- WsdlParser.cs
- SafeNativeMethodsOther.cs
- WindowsListView.cs
- TextLine.cs
- UserControlParser.cs
- GlobalizationSection.cs
- EventDescriptorCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- PageCatalogPart.cs
- FtpRequestCacheValidator.cs
- TagMapCollection.cs
- Page.cs
- Tokenizer.cs
- PrintDialog.cs
- TypeUnloadedException.cs
- CapiNative.cs
- PerfCounters.cs
- Cursor.cs
- ListMarkerLine.cs
- GAC.cs
- CrossAppDomainChannel.cs
- _HeaderInfo.cs
- TypeElementCollection.cs
- SmtpCommands.cs
- HttpClientCertificate.cs
- DelayDesigner.cs
- ReadOnlyDictionary.cs
- SerializableAttribute.cs
- Cursor.cs
- CachingHintValidation.cs
- RtfToken.cs
- Polygon.cs
- DbDataReader.cs
- MsmqTransportReceiveParameters.cs
- _Events.cs
- SchemaNotation.cs
- EventProviderWriter.cs
- LowerCaseStringConverter.cs
- OleDbTransaction.cs
- MetadataArtifactLoader.cs
- SHA512.cs
- DataGridViewCellValueEventArgs.cs
- FormatVersion.cs
- XmlValidatingReaderImpl.cs
- RelationshipConstraintValidator.cs
- ScriptControlManager.cs
- DefaultCommandConverter.cs
- EncoderParameter.cs
- SystemThemeKey.cs
- Filter.cs
- SymbolPair.cs
- XmlSchemaDocumentation.cs
- UDPClient.cs
- SyndicationCategory.cs
- MonitorWrapper.cs
- SqlExpander.cs
- ChangeNode.cs
- EventMappingSettingsCollection.cs
- MetadataHelper.cs
- XXXInfos.cs
- DataRecordInternal.cs
- DesignOnlyAttribute.cs
- RawStylusInputCustomDataList.cs
- Error.cs
- Rect.cs
- KeyInterop.cs
- ServicesUtilities.cs
- WorkflowDesignerMessageFilter.cs
- IsolatedStorageFilePermission.cs
- DirectionalLight.cs
- ValidatedControlConverter.cs
- AsyncStreamReader.cs
- TextTreeUndoUnit.cs
- ActivityExecutionWorkItem.cs
- RootBrowserWindowAutomationPeer.cs