如何在C#中表示Golang的界面{}?

I'm trying to convert some Go code to C#. In Go there is, in example:

type MyType interface{}

Is this something like object in C# or MyType<T>?

In Go code, there is an array of these interfaces and every one of them returns a function with different arguments.

I can return List of Funcs in C# but then the dynamic arguments are the problem.

I'm having problems about representing this in C#. Need some guidance to find the right path.

查看全部
dquv73115
dquv73115
2014/01/15 16:17
  • c#
  • generics
  • function
  • interface
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复