<div dir="ltr"><div>Couldn't figure out how to get Xamarin Studio to create an actual patch file after trying, and failing, to push a change with git. It appears this is the correct place to post this?</div><div><br></div><div><div>I usually put most of my code in PCL and then call it from platform specific code so I'm trying to make DataConverter happy as PCL.</div></div><div><br></div><div>To make DataConverter compile as PCL I had to change Encoding.UTF7 to Encoding.GetEncoding ( "utf-7" ) and the numeric calls to 12000 and 12001 on GetEncoding() to the string-based "utf-32" and "uff-32BE". These three changes had to be made twice as there are two variants using this same code. I also changed ArrayList to List<object> to make PCL happy.</div><div><br></div><div><br></div><div><br></div><div><div><font face="monospace"><span class="" style="white-space:pre">                            </span>case '7':</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                      </span>e = Encoding.GetEncoding ("utf-7");</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                  </span>n = 1;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                 </span>break;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                         </span>case '3':<br></font></div><div><font face="monospace"><span class="" style="white-space:pre">                                    </span>e = Encoding.GetEncoding ("utf-32");</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                 </span>n = 4;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                 </span>break;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                         </span>case '4':</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                      </span>e = Encoding.GetEncoding ("utf-32BE");</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                       </span>n = 4;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                                 </span>break;</font></div><div><span class="" style="white-space:pre"><font face="monospace"><br></font></span></div><div><span class="" style="white-space:pre"><font face="monospace"><br></font></span></div><div><span class="" style="white-space:pre"><font face="monospace"><br></font></span></div><div><font face="monospace"><span class="" style="white-space:pre">                </span>static public IList Unpack (string description, byte[] buffer, int startIndex)<br></font></div><div><font face="monospace"><span class="" style="white-space:pre">               </span>{</font></div><div><font face="monospace"><span class="" style="white-space:pre">                      </span>DataConverter conv = CopyConv;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                 </span>var result = new List<object> ();</font></div><div><font face="monospace"><span class="" style="white-space:pre">                        </span>int idx = startIndex;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                  </span>bool align = false;</font></div><div><font face="monospace"><span class="" style="white-space:pre">                    </span>int repeat = 0, n;</font></div><div><br></div></div></div>