Advertisement
uniblab

Untitled

Jun 4th, 2018
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. private static void Foo( System.Object obj ) {
  2.     if ( null == obj ) {
  3.         throw new System.NullArgumentException( "obj" );
  4.     }
  5.     // do something with obj
  6. }
  7. private static void Bar( System.Object obj ) {
  8. #if DEBUG
  9.     if ( null == obj ) {
  10.         throw new System.NullArgumentException( "obj" );
  11.     }
  12. #endif
  13.     // do something with obj
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement