我在Connection类中有以下代码
private static SqlConnection m_con
{
get
{
var maxPriv = GetMaximumPrivelegeLvl();
if (maxPriv > m_currentPrivelegeLvl)
{
m_instance = new Connection(maxPriv);
}
return m_instance.m_databaseConnection;
}
}
private readonly SqlConnection m_databaseConnection;
这是线程安全吗?