DynamicMethod.ToString Method

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

Returns the signature of the method, represented as a string.

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


Public Overrides Function ToString As String
public override string ToString()

Return Value

Type: System..::.String
A string representing the method signature.


The signature includes only types and the method name, if any. Parameter names are not included.


The following code example displays the ToString method of a dynamic method. This code example is part of a larger example provided for the DynamicMethod class.

outputBlock.Text &= "ToString: " & hello.ToString() & vbLf
outputBlock.Text += String.Format("ToString: {0}", hello.ToString()) + "\n";

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1


Windows Phone

See Also


DynamicMethod Class

System.Reflection.Emit Namespace