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.