The lists is a generics structure, you cannot declare a list on it's own. so instead of declaring the list variable as
List objOrderDetail = new List();
in your first statement do it like this:
List<orderdetail> objOrderDetail = new List<orderdetail>(); </orderdetail></orderdetail>
Please read about lists further at:
http://www.dotnetperls.com/list[
^]
Regards
Pawan