In C++/CLI
for each (A::B::C^ c in SomeClass::Collection)
{
// extract this as a method
c->Foo();
}
gives this when extracting the sub-block as a method
void MyFunc( A::B::C^ c in SomeClass::Collection)
{
// extract this as a method
c->Foo();
}
( 'in SomeClass::Collection' shouldn't be in the parameter declaration)
Cheers
James