Created
September 16, 2019 10:21
-
-
Save micklaw/047df54eec484443980642a982438b8f to your computer and use it in GitHub Desktop.
Does this compile?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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