Hi, Jb,
Please try this method:
IEnumerator<ExpressionType> HowAboutThis()
{
throw new NotImplementedException();
}
By Cecil ==>
ReturnType ->
[System.Collections.Generic.IEnumerator`1<System.Linq.Expressions.ExpressionType>]
DeclaringType -> TestWin.Test
The result is same as Reflection for above method.
Should it be consistent for both cases?
Thanks
Wicky
On 3月24日, 下午3时36分, Jb Evain <[email protected]> wrote:
> On 3/24/09, Wicky <[email protected]> wrote:
>
> > Then how could I get ExpressionType? I see IEnumerator but couldn't
> > find ExpressionType anywhere in ReturnType.
>
> The declaring type of the method will be a GenericInstanceType, its
> GenericArgument collections should have it.
>
> --
> Jb Evain <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---