Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Linq Any Operator With String Using C#
WhatsApp
Vinay Singh
Aug 10
2016
1.1
k
0
0
using
System;
using
System.Linq;
using
System.Collections;
using
System.Collections.Generic;
public
class
MainClass {
public
static
void
Main() {
string
[] presidents = {
"C"
,
"S"
,
"a"
,
"H"
,
"India"
,
"Vinay"
};
bool
any = presidents.Any(s => s.StartsWith(
"V"
));
Console.WriteLine(any);
}
}
Up Next
Linq Any Operator With String Using C#