请问这个在c#中应该怎么转换
char tmpbuf[1024];
sprintf(tmpbuf, "%d%02d%02d", "2006", "2", "8");
long lStartDate = atol(tmpbuf);
如何得到tmpbuf和lStartDate
------------------
DWORD nID =..
WORD wMarket = (WORD)(nID >> 16);
nIndex = (short)(nID & 0xffff);
其中的(nID >> 16)和(nID & 0xffff)应该如何用c#表达
谢谢