Hi how to use foreach loop in managed code c++ using vs2003.
well, there is std::for_each, and Boost.Foreach, and normal for loops, so I really don't think you are quite right there
1800 INFORMATION
2009-05-12 09:15:02
I don't believe any of those apply automatically to IEnumerable.
Matthew Flaschen
2009-05-12 09:16:57
They certainly won't take care of disposing the IEnumerable.
marklam
2009-05-12 09:26:25
+3
A:
I've never used it, but this MSDN article indicates the general syntax is just:
for each(Type t in IEnumerable)
{
}
Matthew Flaschen
2009-05-12 09:15:06
in VS2005 it is ok bur in VS2003 it gives erroe.i dont know y it behaves like that.
Cute
2009-05-14 07:43:52
Cute, because it's new in Visual C++ (http://msdn.microsoft.com/en-us/library/xey702bw(VS.80).aspx), not to be confused with Managed Extensions for C++.
Matthew Flaschen
2009-05-14 09:13:41
A:
Aamir
2009-05-12 09:20:21