rcd/fo-dicom — pull request #28 by cureos (2012-12-17 11:06:02+00:00)
Title: Minor modifications to facilitate library porting to Windows Store apps

Hi Colby,

I am still investigating the possibility of porting at least parts of fo-dicom to the Windows Store (formerly Metro) platform. I am trying to create a portable class library that targets both .NET 4 and Windows Store apps. I am far from there yet, but I thought I'd share some developments so far which I think would be safe to pull into the main fork.

I am still not friends with the Github pull request function, so this request contains unnecessarily many commits. The ones I would like you to look at (and hopefully cherry-pick) are the first two from today's date December 17, denoted [691eab1](https://github.com/cureos/fo-dicom/commit/691eab1057e3e25e3e36816c438b8258148472d9) and [e379ffa](https://github.com/cureos/fo-dicom/commit/e379ffa1f0e26f895702a066535bd67602e558f1).

The first commit concerns modifications with respect to Encoding, where ASCII which is not part of the Portable sub-set has been replaced with UTF8, and where also some method overloads that do not exist in the Portable sub-set have been replaced with existing overloads.

The second commit concerns a few files with using declarations that are unused, and where some of the referenced namespaces are not included in the Portable sub-set. Since types from the referenced namespaces are *not* actually being used in these files, this update should be totally safe. One additional thing is that in the *DicomVM.cs* file, I have switched string comparison for a last character from Invariant Culture to Ordinal. `StringComparison.InvariantCultureIgnoreCase` is not included in the Portable sub-set, and in this particular case usage of ordinal and invariant culture should be completely interchangeable (and ordinal probably a little quicker).

Looking forward to your opinion on this.

Best regards,
Anders