Error ListHashSet<BasePlayer>' does not contain a definition for `ForEach'

Hello all i keep getting this error "error CS1061: Type `ListHashSet<BasePlayer>' does not contain a definition for `ForEach' and no extension method `ForEach' of type `ListHashSet<BasePlayer>' could be found. Are you missing an assembly reference?" 

is there a way to fix this issue? 

Replace that call with a loop

Still getting the error

Screenshot of code!

 

not sure what I'm doing wrong

badboi2k

 

not sure what I'm doing wrong

Not reading the docs I've sent you in dm

i9VUU5ecDQLoWEq.png 2CHEVSKII

Not reading the docs I've sent you in dm

I've been using the link you've sent me, but I'm new to coding and this is my first attempt at actually making a plugin, everything else seems to be working, just can't get my head around this issue! Sorry if I'm not a professional at this, but this is the reason why i'am seeking help......... 

badboi2k

I've been using the link you've sent me, but I'm new to coding and this is my first attempt at actually making a plugin, everything else seems to be working, just can't get my head around this issue! Sorry if I'm not a professional at this, but this is the reason why i'am seeking help......... 

That just simply means you do not know basics of c#. So before you try to write plugins you should actually learn how to write c#. After you do that everything I said before will start to make sense to you.