mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
484 B
20 lines
484 B
using System; |
|
using System.Collections; |
|
using System.Runtime.CompilerServices; |
|
|
|
public class VBNonGenericForEach |
|
{ |
|
public static void M() |
|
{ |
|
ArrayList arrayList = new ArrayList(); |
|
foreach (object item in arrayList) |
|
{ |
|
#if ROSLYN && OPT |
|
Console.WriteLine(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(item))); |
|
#else |
|
object objectValue = RuntimeHelpers.GetObjectValue(item); |
|
Console.WriteLine(RuntimeHelpers.GetObjectValue(objectValue)); |
|
#endif |
|
} |
|
} |
|
}
|
|
|