我正在尝试将一些C#代码转换为VB.NET代码。
这段代码是这样的:
var interactorsAgent = host.InitializeVirtualInteractorAgent(currentWindowHandle, "ConsoleWindowAgent");
interactorsAgent
// we will leave default params for everything except bounds and id
.AddInteractorFor(currentWindowBounds, Literals.RootId, 0, currentWindowHandle.ToString(), "MyFirstActivatable")
// we define interactor to be an activatable one
.WithActivatable()
// we will provide some action which will be invoked when interactor will receive
// gaze while Engine is in ActivationModeOn
.HasActivationFocus(id => Console.WriteLine("Id: {0} got activation focus.", id))
当我在将这个怪物转换为VB.NET时遇到问题时,我想从简单开始,找出这种编码的类型。
在VB.NET中,它看起来像这样:
Dim v1 As VirtualInteractor = interactorsAgent.AddInteractorFor(currentWindowBounds, Literals.RootId, 0, "0", "MyFirstActivatable").WithActivatable().HasActivationFocus(
在我看来,似乎一个扩展引向了另一个扩展,我不知道这种编码是什么类型。然后我可以阅读它。
谢谢。