BindingSourceExtensionsGetCurrentT Method

Gets the current item in the List property of the source BindingSource, and cast it to the specified type.

Definition

Namespace: DevCase.Extensions.BindingSourceExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static T GetCurrent<T>(
	this BindingSource bindingSource
)

Parameters

bindingSource  BindingSource

[Missing <param name="bindingSource"/> documentation for "M:DevCase.Extensions.BindingSourceExtensions.BindingSourceExtensions.GetCurrent``1(System.Windows.Forms.BindingSource)"]

Type Parameters

T

Return Value

T
An object that represents the current item in the underlying list represented by the List property, or null if the list has no items.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BindingSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also