How to display the number of threads in mono?

I tried the following code that works fine in the Windows CLR:

System.Diagnostics.Process.GetCurrentProcess().Threads.Count

... as a result of something > 0.

However, in Mono on OS X or Linux, this always leads to 0

Is this a bug in Mono or do I need a different approach due to platform differences?

+5
source share
1 answer

Going directly to the source, it seems that this is not quite a mistake, but instead is not fully implemented (note the attribute of [MonoTODO]this method).

- Mono Xamarin bug tracker. , , , , - , , .

, github, . Mono, , .

: .

+10

All Articles