Hi,<div><br></div><div>  Enumerator is probably a valuetype, and those have to be unbox-ed before passing them to mono_runtime_invoke ().</div><div><br></div><div>                       Zoltan<br><br><div class="gmail_quote">
On Mon, Apr 4, 2011 at 2:10 PM, viktor.hermansson <span dir="ltr">&lt;<a href="mailto:viktor.hermansson@gmail.com">viktor.hermansson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a problem to use an Enumerator in the unmaneged world.<br>
<br>
When I execute MoveNext() it doesn&#39;t return the expected value (true).<br>
<br>
example code:<br>
(an extension to Roberts code here:<br>
<a href="http://go-mono.com/forums/#nabble-td1538089" target="_blank">http://go-mono.com/forums/#nabble-td1538089</a>)<br>
<br>
c++-code:<br>
<a href="http://pastebin.com/aMHmnHRC" target="_blank">http://pastebin.com/aMHmnHRC</a><br>
<br>
c#-code:<br>
<a href="http://pastebin.com/MpktHBTB" target="_blank">http://pastebin.com/MpktHBTB</a><br>
<br>
platform:<br>
Linux 2.6.38 64bit<br>
Mono git snapshot and 2.10.1<br>
GCC 4.6.0<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://mono.1490590.n4.nabble.com/Embedded-GetEnumerator-on-a-List-int-tp3425288p3425288.html" target="_blank">http://mono.1490590.n4.nabble.com/Embedded-GetEnumerator-on-a-List-int-tp3425288p3425288.html</a><br>

Sent from the Mono - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
</font></blockquote></div><br></div>