Clearing a static list in C# : <p>I'm trying to clear a static list from my "playerStats" script which I use to access static variables globally. Adding elements to the list works just fine (with playerStats.myList.Add(levelNumber)), but when I try to use myList.Clear I get this error: </p>

<p><em>"Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement"</em>.</p>

<p>Here is the relevant code: First the list definition inside the playerStats class:</p>

<pre><code>{

    public static List&lt;int&gt; myList = new List&lt;int&gt;();

}
</code></pre>

<p>And this is then on another script referencing the playerStats:</p>

<pre><code>public void goBack()
    {

        playerStats.myList.Clear;
        SceneManager.LoadScene(0);

    }
</code></pre>

<p>Why can't I clear the list like this?</p>
