In addition to Henry's answer:
You are trying to call a method declared in a nested class (so not from the correct class). Just comment the class declaration:
namespace Delagate01
{
...
...
...
}
Now it should compile.
If you want to encapsulate your functions in another class, then you will need to make your functions static for example, or instanciate the class to access its methods.