error return keyword must not be followed by an object expression
<p>The return(match) is giving me a headache! When I change it into Console.WriteLine(match) it gives me the return I expect but when I try to use the return(match) it gives me an error. I just don't know what to change here so any suggestions would be appreciated!</p>

<p>regards, James</p>

<pre><code>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace ReadTextFile
{
    class Program
    {
        static void Main(string[] args)

        {

            List&lt;string&gt; fileLines = new List&lt;string&gt;();

            using (var reader = new StreamReader("test.txt"))
            {
                string line;
                while ((line = reader.ReadLine()) != null)
                {
                    fileLines.Add(line);
                    string pattern = @"(\w+)@(\w+).([a-z]+)";
                    Match match = Regex.Match((line), pattern);
                    if (match.Success)
                    {
                        return(match);                        
                    }


                }

            }
</code></pre>