Click or drag to resize
PromisesConvertT, S Method (IPromiseT, FuncT, S)
Convert a promise using a simple transformation to go from one type to another

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static IPromise<S> Convert<T, S>(
	this IPromise<T> promise,
	Func<T, S> callback
)

Parameters

promise
Type: Innovator.ClientIPromiseT
callback
Type: SystemFuncT, S

Type Parameters

T
S

Return Value

Type: IPromiseS

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPromiseT. 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