afrog33k / runsharp

Automatically exported from code.google.com/p/runsharp
MIT License
1 stars 1 forks source link

GetType, Equals, GetHashCode on interfaces #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To call one of these methods I need to cast my object to typeof(object). 

Example:
Operand l=g.Local(typeof(IList),Exp.New(typeof(List<int>())));
g.If(l.Invoke("GetType")==typeof(List<int>));
{
...
}
g.End();

But works only:
g.If(l.Cast(typeof(object)).Invoke("GetType")==typeof(List<int>));

Original issue reported on code.google.com by vlad....@gmail.com on 19 Jan 2013 at 8:02