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]\Municipalities.shp");
       int numRows = fs.NumRows();
 }

Last edited May 20, 2015 at 4:10 PM by mbayles, version 7