Which is more efficient in case of complex objects? If the objects are large, are they copied in either case, or are references used?
foreach( ComplexObject obj in complexObjectList )
{
obj.Execute();
}
or
for( int i = 0; i < complexObjectList.Count; i++ )
{
complexObjectList[ i ].Execute();
}
Thanks
Start Free Trial