Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将此VB.NET代码转换为C#?_C#_.net_Vb.net_Delegates - Fatal编程技术网

如何将此VB.NET代码转换为C#?

如何将此VB.NET代码转换为C#?,c#,.net,vb.net,delegates,C#,.net,Vb.net,Delegates,如何将此VB.NET代码转换为C# 像这样的方法应该会奏效: private clsImageMapCalculations myImageMapCalculations = new clsImageMapCalculations((Exception ex) => UnhandledExceptionHandler()); 使用转换工具可能产生问题的零件为: Sub(ex As Exception) UnhandledExceptionHandler() 可以在C#中转换为相应的l

如何将此VB.NET代码转换为C#


像这样的方法应该会奏效:

private clsImageMapCalculations myImageMapCalculations = 
new clsImageMapCalculations((Exception ex) => UnhandledExceptionHandler());
使用转换工具可能产生问题的零件为:

Sub(ex As Exception) UnhandledExceptionHandler()
可以在C#中转换为相应的lambda表达式:


像这样的方法应该会奏效:

private clsImageMapCalculations myImageMapCalculations = 
new clsImageMapCalculations((Exception ex) => UnhandledExceptionHandler());
使用转换工具可能产生问题的零件为:

Sub(ex As Exception) UnhandledExceptionHandler()
可以在C#中转换为相应的lambda表达式:

VB.NET到C#的转换可以通过转换工具完成,例如,请参见

VB.NET到C#的转换可以通过转换工具完成,例如,请参见

private clsImageMapCalculations myImageMapCalculations = new clsImageMapCalculations((Exception ex) => UnhandledExceptionHandler());