Browse Source

Set version number to 2.1.

pull/276/merge
Daniel Grunwald 14 years ago
parent
commit
7364df6b3a
  1. 24
      ICSharpCode.Decompiler/Tests/Async.cs
  2. 2
      ILSpy/Properties/AssemblyInfo.template.cs

24
ICSharpCode.Decompiler/Tests/Async.cs

@ -56,6 +56,25 @@ public class Async @@ -56,6 +56,25 @@ public class Async
return true;
}
public async void TwoAwaitsWithDifferentAwaiterTypes()
{
Console.WriteLine("Before");
if (await SimpleBoolTaskMethod()) {
await Task.Delay(TimeSpan.FromSeconds(1.0));
}
Console.WriteLine("After");
}
public async void StreamCopyTo(Stream destination, int bufferSize)
{
byte[] array = new byte[bufferSize];
int count;
while ((count = await destination.ReadAsync(array, 0, array.Length)) != 0)
{
await destination.WriteAsync(array, 0, count);
}
}
public async void AwaitInLoopCondition()
{
while (await SimpleBoolTaskMethod()) {
@ -82,4 +101,9 @@ public class Async @@ -82,4 +101,9 @@ public class Async
Console.WriteLine("Crash");
}
}
public async Task<int> NestedAwait(Task<Task<int>> task)
{
return await(await task);
}
}

2
ILSpy/Properties/AssemblyInfo.template.cs

@ -32,7 +32,7 @@ using System.Runtime.InteropServices; @@ -32,7 +32,7 @@ using System.Runtime.InteropServices;
internal static class RevisionClass
{
public const string Major = "2";
public const string Minor = "0";
public const string Minor = "1";
public const string Build = "0";
public const string Revision = "$INSERTREVISION$";
public const string VersionName = null;

Loading…
Cancel
Save