{"comment":{"url":"https://api.github.com/repos/0x0ade/XnaToFna/comments/16031860","html_url":"https://github.com/0x0ade/XnaToFna/commit/2b05225df7d58cf0eec9b1e29a517ede3ca7f8e5#commitcomment-16031860","id":16031860,"user":{"login":"0x0ade","id":1200380,"avatar_url":"https://avatars.githubusercontent.com/u/1200380?v=3","gravatar_id":"","url":"https://api.github.com/users/0x0ade","html_url":"https://github.com/0x0ade","followers_url":"https://api.github.com/users/0x0ade/followers","following_url":"https://api.github.com/users/0x0ade/following{/other_user}","gists_url":"https://api.github.com/users/0x0ade/gists{/gist_id}","starred_url":"https://api.github.com/users/0x0ade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x0ade/subscriptions","organizations_url":"https://api.github.com/users/0x0ade/orgs","repos_url":"https://api.github.com/users/0x0ade/repos","events_url":"https://api.github.com/users/0x0ade/events{/privacy}","received_events_url":"https://api.github.com/users/0x0ade/received_events","type":"User","site_admin":false},"position":2,"line":180,"path":"XnaToFna/XnaToFna/Program.cs","commit_id":"2b05225df7d58cf0eec9b1e29a517ede3ca7f8e5","created_at":"2016-02-11T12:59:30Z","updated_at":"2016-02-11T12:59:30Z","body":"After trying to find out how to properly construct arrays, I found out that the \"newarr\" operator should be used.. for one-dimensional arrays (vectors). .ctor seems to be used for multi-dimensional arrays.\r\n\r\n(Sources: [Problem with multi-dimensional arrays @ mono-cecil Google group](https://groups.google.com/forum/?fromgroups#!topic/mono-cecil/6WWX-TQoH54); [Msil Emit static array in dynamic type @ stackoverflow](http://stackoverflow.com/questions/28505200/msil-emit-static-array-in-dynamic-type); [What is the MSIL PrivateImplementationDetail @ blog.renttalent.dk](http://blog.renttalent.dk/2010/09/what-is-msil-privateimplementationdetai.html))\r\n\r\nCould you please check the unmodified instruction calling the method? If monodis fails, a ToString-ed version via Mono.Cecil / XnaToFna can still help.\r\n\r\nI'm suspecting that it's actually a multi-dimensional array, but some information was lost in old MonoMod versions (generic arrays; array dimensions), so XnaToFna could've lost the information, too.\r\n\r\nI'll commit some more changes from MonoMod soon.\r\n\r\n(By the way, could you please commit your MonoGame.Net changes onto a fork or share a diff? As Net / GamerServices aren't part of FNA but rather MG.Net, XnaToFna should IMO officially use it if required. And as I don't own a game to test my changes on, I'm relying on your changes.)"}}