.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
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

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
}
}
}