locked
ReaderWriterLockSlim Class missing from Portable Class Library subset RRS feed

  • Question

  • Hi everybody,

    I recently started a Portable Class Library project where I had to use the ReaderWriterLockSlim class. According to the msdn (http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim(v=vs.110).aspx) this class is "Supported in: Portable class library", but browsing the .Net Portable Subset revealed that this class is not present (and I tried multiple configurations for the targeted frameworks without much success). 

    Am I missing something ?

    Thanks !



    • Edited by jpomez Monday, September 3, 2012 2:21 PM
    Monday, September 3, 2012 2:20 PM

Answers

  • It will be supported in the PCL, but only if you're using other frameworks supported.  This means if your PCL is supporting Windows Phone or Silverlight (where this isn't supported), then that class will not work or be available.



    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    • Proposed as answer by Mike Feng Wednesday, September 5, 2012 8:53 AM
    • Marked as answer by jpomez Wednesday, September 5, 2012 2:13 PM
    Monday, September 3, 2012 5:24 PM

All replies

  • It will be supported in the PCL, but only if you're using other frameworks supported.  This means if your PCL is supporting Windows Phone or Silverlight (where this isn't supported), then that class will not work or be available.



    Reed Copsey, Jr. - http://reedcopsey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    • Proposed as answer by Mike Feng Wednesday, September 5, 2012 8:53 AM
    • Marked as answer by jpomez Wednesday, September 5, 2012 2:13 PM
    Monday, September 3, 2012 5:24 PM
  • Hi Jpomez,

    Welcome to the MSDN Forum.

    I agree with Reed, and how about you?

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, September 5, 2012 9:01 AM
  • Hi,

    Thanks for the answer and the welcome message!

    It's indeed pretty clear and I have to agree with Reed. The MSDN was a little bit confusing about it...

    Regards,

    Julien.


    Wednesday, September 5, 2012 2:13 PM