Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5. public class Program
  6. {
  7. public struct Foo { }
  8.  
  9. public static void Main(string[] args)
  10. {
  11. Foo Foo;
  12.  
  13. string input = Console.ReadLine();
  14. if (input == "42")
  15. {
  16. Foo = new Foo();
  17. }
  18.  
  19. if (input == "42")
  20. {
  21. Console.WriteLine(Foo);
  22. }
  23. Console.ReadKey();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement