Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8645937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:40:41+00:00 2026-06-12T12:40:41+00:00

James Michael Hare recently wrote a blog post about Char static methods. He talks

  • 0

James Michael Hare recently wrote a blog post about Char static methods. He talks about using a method group to write less-wordy LINQ:

if (myString.Any(c => char.IsLower(c))) { xyzzy(); }
if (myString.Any(char.IsLower)) { xyzzy(); } // Less wordy FTW!

The equivalent in VB.NET would be:

If myString.Any(Function(c) Char.IsLower(c)) Then xyzzy()
If myString.Any(Char.IsLower) Then xyzzy() 'Compiler error

Sadly, I can’t do the equivalent of C# here… the compiler tells me that Overload resolution failed because no accessible 'IsLower' accepts this number of arguments… sadness. I thought it might be caused by me having Option Strict on, but alas, that didn’t work either.

I’m assuming method groups aren’t availablet in VB.NET… Is there a similar feature available in VB.NET? Or any particular reason why this can’t (won’t) be done in VB.NET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:40:42+00:00Added an answer on June 12, 2026 at 12:40 pm

    The equivalent VB code would be:

    If myString.Any(AddressOf Char.IsLower) Then xyzzy()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I viewed the DjangoCon 2009 talks about pinax by James Tauber and pydanny and
I am trying to send email using apache james with this code public static
I am reading James Iry's blog post on Monads in scala. I am in
James here! I've been trying for about two hours now to get a sticky
Bill James wrote : I was able to render an HTML page with the
I am using James Padolsey's jQuery sorting script for a HTML table in an
I am creating email message using Apache James. I add TextBody to message with
I have a struct here with something like: char *sname; ........ players[i].sname equalling James.
Suppose I have two arrays: arrayOne = [[james, 35], [michael, 28], [steven, 23], [jack,
(David James both wrote the question and an answer. I'll edit it to conform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.