I have a resource which isn't exactly textual. It's a file with some texts in it and some ansi control code. In my program I'm processing it as a binary file. However, I found that when I load it with System.Resources.ResourceManager.GetObject() as a byte[], all CRLFs are converted to LFs. This is not exactly what I want. I wonder if it's happening at compile time or runtime.
The same project works fine on Xamarin on Windows and OS X. No conversion is happening. It's only happening on Linux. And I'm sure the file on the disk does contain CRLFs. I checked the file size against the size of the byte[] loaded by ResourceManager.
Any ideas how to prevent this from happening? Thanks.