I have...

```
Func<string> del2 = new Func<string>(MyMethod);

```

and I really want to do..

```
Func<> del2 = new Func<>(MyMethod);

```

so the return type of the callback method is void. Is this possible using the generic type func?
['https://Stackoverflow.com/questions/8414930', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/223863/']
Yes a function returning void (no value) is a `Action`

```
public Test()
{
    // first approach
    Action firstApproach = delegate
    {
        // do your stuff
    };
    firstApproach();

    //second approach 
    Action secondApproach = MyMethod;
    secondApproach();
}

void MyMethod()
{
    // do your stuff
}

```

**hope this helps**
Here is a code example using Lambda expressions instead of Action/Func delegates.

```
delegate void TestDelegate();

static void Main(string[] args)
{
  TestDelegate testDelegate = () => { /*your code*/; };

  testDelegate();
}

```