Converter(TInput, TOutput) Delegate
TOC
Collapse the table of content
Expand the table of content

Converter<TInput, TOutput> Delegate

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Represents a method that converts an object from one type to another type.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

Type Parameters

in TInput

The type of object that is to be converted.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see [2678dc63-c7f9-4590-9ddc-0a4df684d42e].

out TOutput

The type the input object is to be converted to.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see [2678dc63-c7f9-4590-9ddc-0a4df684d42e].

Parameters

input
Type: TInput
The object to convert.

Return Value

Type: TOutput
The TOutput that represents the converted TInput.
None of the methods in the .NET Framework for Windows Phone class library have a Converter<TInput, TOutput> delegate as a parameter. The Converter<TInput, TOutput> delegate exists primarily to support the infrastructure, but you can still use it to create custom methods that use converters.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft