I'm learning C# and C and this C# code is giving me an error I don't understand. I'm reading about extension methods and this code is giving the error: No overload for method 'WriteTextToConsole' takes 1 arguments. As you can see, it takes exactly 1 arguments? I created the variables c and count only to be able to construct the string object. So I could try the extension in the String class. Is it right understood that the way you create an extension method: is to precede the parameter with the "this" keyword and the parameter is of the type of class to be extended?

The code is here:

```
        Console.WriteLine();
        M.WriteTextToConsole("Hello, world. Programming in C# is fun");
        char c = 'A';
        int count = 14;
        String str = new String(c, count);
        str.WriteTextToConsole("This is a string");

```

The method is here:

```
static class M
{
  public static void WriteTextToConsole(this string text)
  {
      Console.WriteLine(text);
  }
}

```