Linq To get a count of variable from a list of variables

Hi all,

To get a count of variable from a list of variables

Eg: my variable is : Aaa

List of variables:: A, B, C, Aaa,Aaa,AaaB

The output shlould be count: 3 as AaaB also has Aaa

Any idea?

Hi,

Can you try the following expression?

listStr.Where(Function(s) s.Contains(keyword)).Count()

Regards,

Hey @Ray_Sha1 please try this
RecordFiles.Where(function(row) row.Contains(“Aaa”)).Count
as recordfiles is your list variable

Regards

Sreejith S S

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.