什么是等效于C#using语句的Managed C ++

如何在托管C ++中对以下C#代码进行编码

How would one code the following C# code in Managed C++

void Foo()
{
    using (SqlConnection con = new SqlConnection("connectionStringGoesHere"))
    {
         //do stuff
    }
}

澄清:
对于托管对象。

Clarificaton: For managed objects.



 1 条回答