'Declaration <ExtensionAttribute()> Public Overloads Shared Function InvokeAsync(Of T)( _ ByVal dispatcher As Dispatcher, _ ByVal d As Func(Of T) _ ) As Task(Of T)
'Usage Dim dispatcher As Dispatcher Dim d As Func(Of T) Dim value As Task(Of T) value = DotNet4Extensions.InvokeAsync(Of T)(dispatcher, d)
[Extension()] public static Task<T> InvokeAsync<T>( Dispatcher dispatcher, Func<T> d )
Parameters
- dispatcher
- d
Type Parameters
- T