.net - javascript [].some() in c# -


does equivalent of javascript array.some() function exist in c#?

yes there is: any

var foo = new object[10]; var = foo.any(x => x != null); 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -