如何将VB.NET代码转换为C#?
Private myImageMapCalculations As New clsImageMapCalculations(Sub(ex As Exception) UnhandledExceptionHandler())
private clsImageMapCalculations myImageMapCalculations = new clsImageMapCalculations((Exception ex) => UnhandledExceptionHandler());
VB.NET到C#的转换可以通过转换工具完成,例如,请参见http://www.developerfusion.com/tools/convert/vb-to-csharp/
Something like this should work :
private clsImageMapCalculations myImageMapCalculations =
new clsImageMapCalculations((Exception ex) => UnhandledExceptionHandler());
The part that can create problems with a conversion tool is :
Sub(ex As Exception) UnhandledExceptionHandler()
that can be converted into a corresponding lambda expression in C# :
(Exception ex) => UnhandledExceptionHandler()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.