ObjectBinder<T> Class

Provides iterative access to strongly typed objects Wraps the functionality of the SqlDataReader so that it does not have to be referred to in the business layer.

Inheritance Hierarchy


Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)


Public MustInherit Class ObjectBinder(Of T) _
    Implements IEnumerable(Of T), IEnumerable
public abstract class ObjectBinder<T> : IEnumerable<T>, 
generic<typename T>
public ref class ObjectBinder abstract : IEnumerable<T>, 
type ObjectBinder<'T> =  
        interface IEnumerable<'T>
        interface IEnumerable 
JScript does not support generic types or methods.

Type Parameters

  • T

The ObjectBinder<T> type exposes the following members.


Name Description
Protected method ObjectBinder<T>() Default Constructor
Protected method ObjectBinder<T>(SqlDataReader, String) Constuctor that will be used when this binder is not being used as part of a result collection



Name Description
Public property Current Gets/Sets Current Object
Public property Items Returns strongly typed list of all items in the reader cannot call after use of MoveNext method.
Protected property ProcedureName
Protected property Reader



Name Description
Protected method Bind Abstract Bind method to be implemented by the derived class.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator The object binder is a streaming enumerable and uses an internal object as the enumerator. This means it does not support being able to reset the enumerator. Also all requests to obtain an enumerator will use this object
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveNext Moves to the next Object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Explicit Interface Implementations

Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.TeamFoundation.Framework.Server Namespace