Access the mutex class in the mscorlib.dll file

Please correct me if I am wrong or bark the wrong tree.

There are different Mutex classes, one in mscorlib.Extensions and one in mscorlib . Both are part of the System.Threading namespace. By this MSDN page . I can use the Mutex class in mscorlib . (Although the phone symbol does not appear in the column before the name) I basically want to access the OpenExisting method from the Windows Phone 7.1 application. The default System.Threading.Mutex used in mscorlib.Extensions , which does not have an OpenExisting method.

So the question is, how can I make sure that the Mutex class I am mscorlib is from the mscorlib dll?

Should I reference mscorlib.Extensions , what are the consequences of this?

EDIT 1: Just assumed that my application belongs to mscorlib[2.0.5.0] , which does not have a Mutex class. I looked at mscorlib[4.0.0.0] , which has a Mutex class. In any case, is there a way to access the OpenExisting method?

EDIT 2: This question answers my question about mscorlib [4.0.0.0] links mscorlib [4.0.0.0] . So, I can not use the OpenExisting method OpenExisting all? Is the reference to the Mutex class here , the reference to the wrong class?

+4
source share
1 answer

As you can see on the MSDN Page for Mutex (Silverlight), the OpenExising method OpenExising not available for Silverlight.

In short: you cannot use it.

+1
source

Source: https://habr.com/ru/post/1380535/


All Articles