SHARE
TWEET

Untitled

a guest Jun 15th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void Main()
  2. {      
  3.     Console.WriteLine(List() + "wtf"); // no compilation error
  4. }
  5.  
  6. public static IEnumerable<string> List() {
  7.     yield return "abc";
  8.     yield return "xyz";
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top