Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1 / ComplexBindingPropertiesAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class ComplexBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string dataMember; ///Specifies the data source and data member properties for a component. ////// public ComplexBindingPropertiesAttribute() { this.dataSource = null; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource) { this.dataSource = dataSource; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource, string dataMember) { this.dataSource = dataSource; this.dataMember = dataMember; } ////// Initializes a new instance of /// the ///class. /// /// public string DataSource { get { return dataSource; } } ////// Gets the name of the data source property for the component this attribute is /// bound to. /// ////// public string DataMember { get { return dataMember; } } ////// Gets the name of the data member property for the component this attribute is /// bound to. /// ////// public static readonly ComplexBindingPropertiesAttribute Default = new ComplexBindingPropertiesAttribute(); public override bool Equals(object obj) { ComplexBindingPropertiesAttribute other = obj as ComplexBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.DataMember == dataMember; } 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.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class ComplexBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string dataMember; ///Specifies the data source and data member properties for a component. ////// public ComplexBindingPropertiesAttribute() { this.dataSource = null; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource) { this.dataSource = dataSource; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource, string dataMember) { this.dataSource = dataSource; this.dataMember = dataMember; } ////// Initializes a new instance of /// the ///class. /// /// public string DataSource { get { return dataSource; } } ////// Gets the name of the data source property for the component this attribute is /// bound to. /// ////// public string DataMember { get { return dataMember; } } ////// Gets the name of the data member property for the component this attribute is /// bound to. /// ////// public static readonly ComplexBindingPropertiesAttribute Default = new ComplexBindingPropertiesAttribute(); public override bool Equals(object obj) { ComplexBindingPropertiesAttribute other = obj as ComplexBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.DataMember == dataMember; } 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
- CharConverter.cs
- ConstructorArgumentAttribute.cs
- DBDataPermission.cs
- BulletedList.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ADMembershipProvider.cs
- SafeLibraryHandle.cs
- TemplateField.cs
- StoreContentChangedEventArgs.cs
- MsmqAppDomainProtocolHandler.cs
- BrowserDefinitionCollection.cs
- ProtocolException.cs
- HtmlInputImage.cs
- infer.cs
- SHA384.cs
- PropertyMetadata.cs
- LightweightCodeGenerator.cs
- DrawingGroupDrawingContext.cs
- RtfToken.cs
- PropertyPathWorker.cs
- DifferencingCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- ConsumerConnectionPoint.cs
- UserControlBuildProvider.cs
- CfgArc.cs
- FileStream.cs
- UserMapPath.cs
- CompilerResults.cs
- RsaSecurityTokenParameters.cs
- SEHException.cs
- XmlValidatingReader.cs
- ConfigXmlElement.cs
- ComEventsHelper.cs
- CustomExpressionEventArgs.cs
- DataGridTablesFactory.cs
- TraceFilter.cs
- WebDisplayNameAttribute.cs
- NumericUpDownAccelerationCollection.cs
- VirtualPathData.cs
- DefaultCommandConverter.cs
- BaseTypeViewSchema.cs
- TextEditor.cs
- OutputCacheProfileCollection.cs
- SByteConverter.cs
- GlyphsSerializer.cs
- LinqExpressionNormalizer.cs
- InputLanguage.cs
- DateTimeFormat.cs
- CultureData.cs
- FlowDocument.cs
- RenderCapability.cs
- CalendarDateChangedEventArgs.cs
- ComboBox.cs
- Section.cs
- ButtonRenderer.cs
- ListQueryResults.cs
- EntityDataSourceSelectingEventArgs.cs
- sqlpipe.cs
- DecoderFallback.cs
- ProfileModule.cs
- EventMappingSettingsCollection.cs
- ProcessRequestArgs.cs
- RegexMatch.cs
- GridView.cs
- ScrollData.cs
- XPathParser.cs
- XmlDataSourceDesigner.cs
- PrimitiveDataContract.cs
- HtmlFormParameterReader.cs
- AuthenticationConfig.cs
- DrawingAttributeSerializer.cs
- QuotedStringFormatReader.cs
- OfTypeExpression.cs
- OdbcCommandBuilder.cs
- TabControl.cs
- XmlWrappingWriter.cs
- ConnectorDragDropGlyph.cs
- Semaphore.cs
- ConfigurationValidatorBase.cs
- TemplateParser.cs
- BasicExpressionVisitor.cs
- GridErrorDlg.cs
- IriParsingElement.cs
- ChtmlSelectionListAdapter.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- ThrowHelper.cs
- InputScope.cs
- TextBox.cs
- XmlDictionaryReaderQuotasElement.cs
- FileRecordSequenceHelper.cs
- ManagementException.cs
- LineServicesCallbacks.cs
- UnsafeNativeMethodsCLR.cs
- SqlExpressionNullability.cs
- SqlGenerator.cs
- MgmtResManager.cs
- FontConverter.cs
- PropertyGridEditorPart.cs
- RTLAwareMessageBox.cs
- ClientSettingsSection.cs