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 4578040
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:25:47+00:00 2026-05-21T20:25:47+00:00

I might be alone in this; but I was always under the impression that

  • 0

I might be alone in this; but I was always under the impression that in .NET when you called a function you had to pass in values in the same order as the method.

Example:

Public Sub DoSomething(ByVal A as String, ByVal B as String)
End Sub

DoSomething("First Param", "Second Param")

I recently learned you can specify params by name:

DoSomething(B:="Second Param", A:="First Param")

My question might be a stupid one, but what is the best practice? Everything I’ve ever seen just calls the method with the params in the correct order – is the named convention an old left-over from VB? If I were to use the := syntax in all my method calls, would people laugh during my next code review?

Do you have any examples where using := really makes sense? Or is it always just a preference thing?

  • 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-05-21T20:25:48+00:00Added an answer on May 21, 2026 at 8:25 pm

    If you haven’t looked here yet, take a look (thought it’s about C#, same principle though).

    Basically named parameters are designed to make working with optional arguments easier. Suppose you have a method that has 3 required parameters and 12 optional parameters (like some COM APIs). You may be interested in overriding one of the optional parameters and leaving the rest as defaults. Using named parameters you are able to do just that. The alternative would be passing null or Type.Missing for the arguments you don’t care about overriding.

    There’s also this related question: Usage of named parameters (again C#, but same principle).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It might look like a stupid question, but I recently realized that .NET implementation
OK, I'm guessing that this might be a bug but I'm not totally sure.
Might be a bit of noob question but it's something that's been getting me
This might seem like a very easy question for some of you folks, but
This might be a simple question but I've searched and searched and can't find
I have a theoretical grid of overlapping rectangles that might look something like this:
I might be one anal programmer, but I like code that looks good from
Might be my question sounds more naive. But I wanted to know if it
Might be my question is abstract or out of context, but i am asking
might be a stupid question but I seem to be confused. Im pretty new

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.