how to dispose once done
<p>i want to dispose the instance once the function is finished. something with "using" i think...  </p>

<p>also
i want to add each name to an array .  </p>

<p>i try:  </p>

<pre><code>      using(  Database db = new Database())

    public string[] FindNameByLength(int minimumCharNumber)
    {

        try{
        var query = from u in db.Users
                    where u.FullName.Length &gt; minimumCharNumber
                    select u.FullName;


        string[] namesLength;
        int counter;

        foreach (var s in query)
        {
            namesLength.Concat(new[] {s });
        }
        return namesLength;
        }
        finally IDisposable(db).dispose();
    }

}
</code></pre>
