Check Not Null - CSharp System

CSharp examples for System:Int32

Description

Check Not Null

Demo Code

// Permission is hereby granted, free of charge, to any person obtaining a copy
using System;//from  w  w w. j  av a  2  s . c  o  m

public class Main{
        public static void CheckNotNull (string argumentName, object argumentValue)
    {
      if (argumentValue == null)
        throw new ArgumentNullException (argumentName);
    }
}

Related Tutorials