```
public delegate void SimpleDelegate();

public void mycode()
{
string str = "myfunction"; 

/*somehow use reflection to turn str into myfunction so this will compile*/
SimpleDelegate simpleDelegate = new SimpleDelegate(str);

}

public void myfunction() { } 

```