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.
18 lines
311 B
18 lines
311 B
using System; |
|
using System.Collections.Generic; |
|
using System.IO; |
|
|
|
internal class ForeachUsing |
|
{ |
|
public static void Run(IEnumerable<int> items) |
|
{ |
|
using (StringWriter stringWriter = new StringWriter()) |
|
{ |
|
stringWriter.Write("x"); |
|
} |
|
foreach (int item in items) |
|
{ |
|
Console.WriteLine(item); |
|
} |
|
} |
|
}
|
|
|