c# - Count records from datatable or array which exist between values in another datatable -


I have 2 columns in a dataset, column 1 is the starting position of a product and 2 is the column end position. I am trying to count each point in the data format present between the starting point and the end point. See the enclosed image, the record in which the bottom line is going down is the result of a standard GroupBy , which is easy, but do not give the necessary results, the bottom line is "real necessary" which I try to get I am doing I hope this is obvious because I am unable to work it on my own, and I have not found anything on any site which can give me an example so that I am able to understand that it is a record of every record How slow is it without breaking

Enter image details here

A standard Linq GroupB query is not suitable because it will only count the start and end points, not the value in the middle, usually the dataset has several thousand records and hundreds of digits.

Thanks in advance.

  int [] arr = new intent [500]; For (int s = 0; s  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -