locked
BitArray Class Missing CopyTo() method? RRS feed

  • Question

  • Using the new '.NET for Metro Style Apps' libraries, using the definition provided in

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Collections.dll , The CopyTo() method is no longer defined on the BitArray class.... What technique is used to convert the content back to a byte array / Buffer?

    --

    Sam


    Sam Jones

    Monday, April 30, 2012 5:36 PM

Answers

All replies

  • Hi Sam - this is stumping me too.  I'm asking internally how this can be done.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator

    Monday, April 30, 2012 7:14 PM
    Moderator
  • Cast to an ICollection, then call CopyTo:

    ((ICollection) A).CopyTo


    Matt Small - Microsoft Escalation Engineer - Forum Moderator

    Monday, April 30, 2012 8:34 PM
    Moderator