Exemplo n.º 1
0
 // Is there any problem with nulls?
 public _04_The_Null_problem(IThridPartyMagicAlhemy alhemy)
 {
     // make me freekin rich, but
     if (alhemy == null)
         throw new ArgumentNullException("alhemy", "I hate you ThirdPartyMagic!");
     // ...
 }
Exemplo n.º 2
0
 // Is there any problem with nulls?
 public _04_The_Null_problem(IThridPartyMagicAlhemy alhemy)
 {
     // make me freekin rich, but
     if (alhemy == null)
     {
         throw new ArgumentNullException("alhemy", "I hate you ThirdPartyMagic!");
     }
     // ...
 }