I read the Limitations of IOS.
http://docs.xamarin.com/guides/ios/advanced_topics/limitations#2.no-dynamic-code-generation
In the section - No Dynamic Code Generation,
it mentions : No support for creating types dynamically (no Type.GetType (“MyType`1”)),
so I wonder the illegal of my method to get a function by it’s name.
Below code is how I get a function by it’s name.
class MyType
{
public static int Func( int I)
{
return I + 3;
}
}
int result = (int)typeof(MyType).GetMethod ("Func").Invoke (null, new Object[]{4});
Is this code illegal in IOS?