Advertisement
Guest User

Untitled

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