Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8524435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:41:09+00:00 2026-06-11T07:41:09+00:00

I would like to use the methods of the Interlocked class in a portable

  • 0

I would like to use the methods of the Interlocked class in a portable class libraries project and according to the MSDN (here) the Interlocked class is supported in the portable framework. Unforunately it seems that only a part of the Interlocked methods is available. For example I can find neither “Read” nor Exchange(Int64,Int64).
Does anyone know whether they are hiding somewhere else or are just not implemented? And if so, why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:41:11+00:00Added an answer on June 11, 2026 at 7:41 am

    Portable library is a way identifying the common (subset) surface area that is available across the platforms you target, it does not expose or add additional APIs above and beyond this subset. This is why some members differ.

    When MSDN says that a given API is supported in portable, it really means that an API is available when you choose a certain combination of platforms. For example, Interlocked.Read in this case is available when choosing .NET Framework & Windows Store apps (and nothing else) on the dialog when creating a new portable class library. Unfortunately, we know this is confusing in the docs and we’re working to improve it in the future.

    In the RTM of Visual Studio 2012, and the current RC build of the down-level tools we actually expose the Int64 versions of the Interlocked methods, however, we have a bug where they are exposed when targeting Windows Phone. This is incorrect, they do not work in Windows Phone (they throw NotSupportedException when called).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two classes, Phone.class and Time.class. I would like to use their methods
I would like to use the GetLocalizedItems method in the Anguilla Framework. I don't
I would like to use the mms-computing.co.uk.device.twain.jar library in a Java project that should
I would like to make use of few methods from couple of my old
I would like to use [Authorize(Roles=Admin)] tags on my controller methods. If a user
Hi All below is a WebService Class which i would like to use (i
I'm looking into a restful design and would like to use the HTTP methods
I would like to use reflection to display a list of methods in an
I would like to use HTTP post and get methods to retrieve images for
I would like to use a UIWebView object to run custom javascript methods against

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.