0

我通过 Java 代码移植到 c#。我想用 c# 重写以下 Java 代码。提前致谢 :)

// Called whenever an exception would be thrown.
    public void onException(java.lang.Throwable throwable, WebDriver driver){
        System.out.println("onException' Called whenever an exception would be thrown ...");
    }
4

1 回答 1

1

一个喜欢的翻译如下:

public void OnException(System.Exception exception, IWebDriver driver)
{
    Console.WriteLine("OnException' Called whenever an exception would be thrown ...");
}
于 2012-10-23T08:40:39.603 回答