当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Mono - missing Socket.Bind and other methods

问题描述:

I need to rewrite my Visual Studio project in Xamarin Studio(Gtk#), but I havent some methods in Xamarin like:

System.Net.Sockets.Socket.Bind, Thread.SetApartmentState.

And I think this isn't full list.

How to use my Visual Studio methods in Xamarin or quick rewrite project?

Thanks!

网友答案:

Obviously Mono supports both Socket.Bind and Thread.SetApartmentState,

https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.Sockets/Socket.cs

https://github.com/mono/mono/blob/master/mcs/class/corlib/System.Threading/Thread.cs

So you need to review which project type you use in Xamarin Studio, and what kind of references you use.

分享给朋友:
您可能感兴趣的文章:
随机阅读: