Skip to content

Instantly share code, notes, and snippets.

@micklaw
Created September 16, 2019 10:21
Show Gist options
  • Save micklaw/047df54eec484443980642a982438b8f to your computer and use it in GitHub Desktop.
Save micklaw/047df54eec484443980642a982438b8f to your computer and use it in GitHub Desktop.
Does this compile?
public class Test
{
public async Task<IEnumerable<string>> AsyncMethod(string input)
{
dynamic value = "String";
var awaitedIEnumerableStringList = await SomeMethod(value);
return awaitedIEnumerableStringList;
}
private IEnumerable<string> SomeMethod(string input)
{
yield return input;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment