Make possible to use P.ninvoke with methods and not only with method
names.