BindingSourceExtensionsGetCurrentT Method
Gets the current item in the List property
of the source BindingSource, and cast it to the specified type.
Namespace: DevCase.Extensions.BindingSourceExtensionsAssembly: 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
)
<ExtensionAttribute>
Public Shared Function GetCurrent(Of T) (
bindingSource As BindingSource
) As T
Dim bindingSource As BindingSource
Dim returnValue As T
returnValue = bindingSource.GetCurrent()
public:
[ExtensionAttribute]
generic<typename T>
static T GetCurrent(
BindingSource^ bindingSource
)
[<ExtensionAttribute>]
static member GetCurrent :
bindingSource : BindingSource -> 'T
No code example is currently available or this language may not be supported.
- bindingSource BindingSource
[Missing <param name="bindingSource"/> documentation for "M:DevCase.Extensions.BindingSourceExtensions.BindingSourceExtensions.GetCurrent``1(System.Windows.Forms.BindingSource)"]
- T
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.
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).