Hi everyone!
I'm writing the compiler prototype using Cecil as assembly builder. I'm
using .net core for developing.
And I have some troubles connected with the System.Private.CoreLib
reference.
In my language I can using array out of the box like this:
double Average(int[] arr)
{
double result = 0;
for(int i = 0; i < arr.Length; i++) //arr.Length <-- this is field access
{
result = result + arr[i];
};
result = result / arr.Length;
return result;
}
And then I try with cecil get the Length_get method from the mscorelib the
Cecil reference to the System.Private.CoreLib. If I target .net framework then
everything is fine.
I have read on github issues with problems with .net core but I didn't find the
solution.
I can give small repro if need.
(I think this is related https://github.com/jbevain/cecil/issues/487)
How I can resolve this. Or for my project better use the System.Reflection
namespace.
Thanks.
--
--
--
mono-cecil
---
You received this message because you are subscribed to the Google Groups
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.