s.Split(new string[]{"\r\n"}).Length
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
int bb = s.Split('\r').Length-1;
int cc = s.Split('\n').Length-1;