Is it possible to dynamically set a static string during *class* Initialisation?
<p>I'm trying to dynamically create a connection string during compile time:</p>

<pre><code>private static string m_ConnectionString
{
    get 
    {
        string connectionString = @"Data Source=" + myLibrary.common.GetExeDir() + @"\Database\db.sdf;";
        return connectionString;
    }
}
public static string ConnectionString = m_ConnectionString;
</code></pre>

<p>I keep running into type initialisation errors. ConnectionString ends up null at runtime. I was trying to avoid having to set the connection string for all applications that user my code library. The location of the database is different for each project that uses the library. I have code that can determine the correction string, but was wanting run it during class initialisation. Is this even possible?</p>
