General Questions about List
<p>Hi
I have a general question about Lists in C#.
Here is my Code:</p>

<pre><code>public List&lt;string&gt; Example()
    {
        ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\WMI", "SELECT * FROM MSStorageDriver_FailurePredictStatus");

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

        foreach (ManagementObject queryObj in searcher.Get())
        {
            output.Add(System.Convert.ToString(queryObj["InstanceName"]));
        }

        return output;
    }
</code></pre>

<p>and now I want to give the first input out</p>

<pre><code>public FormMain()
    {

        Debug.WriteLine(Example(1));


    }
</code></pre>

<p>No overload for method 'output' takes 1 arguments</p>

<p>I hope you can explain me this and sorry for my question, I am an absoltue beginner</p>

<p>Best wishes</p>
