Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1305376 / 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
- StateWorkerRequest.cs
- SyndicationDeserializer.cs
- WinEventHandler.cs
- TopClause.cs
- ProfileInfo.cs
- ImportContext.cs
- Relationship.cs
- invalidudtexception.cs
- ArithmeticException.cs
- ExtensionQuery.cs
- DBConcurrencyException.cs
- InkSerializer.cs
- SerializationInfoEnumerator.cs
- FactoryMaker.cs
- CompiledRegexRunnerFactory.cs
- ServerReliableChannelBinder.cs
- ValidationHelpers.cs
- MouseOverProperty.cs
- RegexCharClass.cs
- Control.cs
- TextBoxRenderer.cs
- SQLStringStorage.cs
- ToolStripItem.cs
- ProcessProtocolHandler.cs
- LambdaCompiler.Unary.cs
- HelpEvent.cs
- XPathScanner.cs
- storepermission.cs
- TracePayload.cs
- HatchBrush.cs
- ResourcesChangeInfo.cs
- BrowserTree.cs
- SecurityElement.cs
- MultitargetUtil.cs
- XmlSchemaDatatype.cs
- PresentationSource.cs
- SimpleRecyclingCache.cs
- SelectedGridItemChangedEvent.cs
- HttpCacheVary.cs
- Vector3DAnimation.cs
- InstalledFontCollection.cs
- InputBuffer.cs
- TreeNodeConverter.cs
- MouseButtonEventArgs.cs
- WindowsRegion.cs
- HtmlButton.cs
- XhtmlBasicPanelAdapter.cs
- Thread.cs
- IncomingWebRequestContext.cs
- ZipIOExtraField.cs
- Signature.cs
- Guid.cs
- Transform.cs
- Update.cs
- CompressEmulationStream.cs
- ListSourceHelper.cs
- XpsS0ValidatingLoader.cs
- BuildManagerHost.cs
- WpfKnownMemberInvoker.cs
- UserUseLicenseDictionaryLoader.cs
- ZoneButton.cs
- MessageEnumerator.cs
- UserControlCodeDomTreeGenerator.cs
- DbUpdateCommandTree.cs
- SelectionProcessor.cs
- PerformanceCounterPermissionEntryCollection.cs
- PageAsyncTask.cs
- GlyphRunDrawing.cs
- FreezableOperations.cs
- ObjectStateManagerMetadata.cs
- infer.cs
- TextRangeEditLists.cs
- MergeFailedEvent.cs
- SoapFault.cs
- InputProviderSite.cs
- ToolStripItemRenderEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- VisualState.cs
- StdRegProviderWrapper.cs
- RandomNumberGenerator.cs
- SQLMembershipProvider.cs
- Property.cs
- webclient.cs
- DynamicUpdateCommand.cs
- ContextDataSourceView.cs
- CaseInsensitiveComparer.cs
- ViewManager.cs
- BitStack.cs
- GraphicsPathIterator.cs
- TrackingProfileSerializer.cs
- PolyLineSegment.cs
- Logging.cs
- WebPartEventArgs.cs
- CriticalHandle.cs
- SessionStateContainer.cs
- LocationUpdates.cs
- MethodImplAttribute.cs
- Codec.cs
- TextOptionsInternal.cs
- TrackingStringDictionary.cs