fix .net 2.0 compilation issue

var issue; getter and setter body issue