Trying to implement function calling in c#, need some advice

This isn’t really a code review forum. You might want to use stack overflow or something like that. Good luck