Why is there no RAII in .NET?

A better title would be “Why is there no RAII in C#/VB”. C++/CLI (The evolution of the abortion that was Managed C++) has RAII in the exact same sense as C++. It’s all just syntax sugar for the same finalisation pattern that the rest of the CLI languages use (Destructors in managed objects for C++/CLI are effectively finalisers), but it is there.

You might like http://blogs.msdn.com/hsutter/archive/2004/07/31/203137.aspx

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)