C # code