[Mono-list] Mono on Linux and Missing methods

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Fri May 22 11:42:37 UTC 2015


> From: Zacharia Karami [mailto:heatedphoenix at gmail.com]
> 
> "It works in 4.5" on Windows. But again, there is a problem (in so far that

Oh! Ok, I get it. You should check the mono class compatibility page. Although *most* stuff in .Net is implemented in mono, there are areas where things are known absent or broken. So whenever you encounter something like this, which works in .Net and doesn't work in mono, always start by checking the class status page.

From http://mono-project.com, Documentation, About Mono, Class Status,  Status.

Here, you can browse the 4.5 column, System.Net.IPAddress, and the two methods MapToIPv4 and MapToIPv6 are both marked as broken. There may be more info somewhere about *why* it's broken and what needs to happen to fix it, but that would be a discussion best for the mono-dev list, to assist in fixing mono sources.

In this case, you have a definite answer. That method is definitely just broken in mono, end of story. Your only solution is not to use that method on mono... Hopefully there is a workaround you can use without suffering too much pain.


More information about the Mono-list mailing list