RowsCS - sindizzy/DSW GitHub Wiki
Sample code that demonstrates how to get the number of rows in a feature set.
using System.Windows.Forms;
using DotSpatial.Data;
private void btnBuffer_Click(object sender, EventArgs e)
{
IFeatureSet fs = FeatureSet.Open(@"C:\[Your File Path](Your-File-Path)\Municipalities.shp");
int numRows = fs.NumRows();
}