I'm currently looking to build dynamic type converter,
for example, I can easily do :
public struct Tester
{
public int Hello;
public static implicit operator int(Tester d)
{
return d.Hello;
}
public static implicit operator float(Tester d)
{
return d.Hello;
}
}
then
typeof(Tester).GetMethods()
Will return me implicit cast MethodInfo.
However, if I do:
typeof(int).GetMethods()
It will not return any op_implicit
I've seen that you can see the table here , but I was wondering if it's possible to reflect it from the framework itself.
Please note that it's not really a blocking issue, if it's not possible, I'll add converters from the table manually, but I would obviously prefer to have this dynamically built (cleaner and less error prone).