Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1.exe:
  2. #define CONSOLEAPP
  3. using System;
  4. namespace ClientConsoleTest
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             OtherLib.Do();
  11.         }
  12.     }
  13. }
  14.  
  15. OtherLib.dll:
  16. namespace OtherLib
  17. {
  18.     public static class Game
  19.     {
  20.     public static void Do()
  21.         {
  22. #if !CONSOLEAPP
  23.                 Console.WriteLine("hmm");  //WHY IT RUN?
  24. #endif
  25.     }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement