Convert Method

Binder.Convert Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Initializes a new CSharp convert binder.

Namespace:  Microsoft.CSharp.RuntimeBinder
Assembly:  Microsoft.CSharp (in Microsoft.CSharp.dll)

'Declaration
Public Shared Function Convert ( _
	flags As CSharpBinderFlags, _
	type As Type, _
	context As Type _
) As CallSiteBinder

Parameters

flags
Type: Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags
The flags with which to initialize the binder.
type
Type: System.Type
The type to convert to.
context
Type: System.Type
The Type that indicates where this operation is used.

Return Value

Type: System.Runtime.CompilerServices.CallSiteBinder
Returns a new CSharp convert binder.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft