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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:15:46+00:00 2026-05-15T05:15:46+00:00

I am generally not one to engage in subjective arguments over matters like variable

  • 0

I am generally not one to engage in subjective arguments over matters like variable naming, code formatting, etc. So I have no intention of starting an argument here.

I just came across this (old) blog post which recommends not prefixing member variable names:

Do not use a prefix for member
variables (_, m_, s_, etc.). If you
want to distinguish between local and
member variables you should use
"this." in C# and "Me." in VB.NET.

For C#, yeah, I get it: member variables can be lower camelCase, and public properties/methods can be PascalCase. But VB.NET is case-insensitive, so you can’t really give a private member the same name as a public property except with a lower case first letter.

I’ve generally prefixed member variables with an underscore, but I’ve been told that’s not idiomatic.

So really I’m just curious: how do you name your member variables in VB.NET? And is there a "standard" way?

I’m not asking because I believe there’s a "right" way or because I particularly want to change my style, and certainly not because I have any desire to tell others they’re "wrong." Like I said, I’m just curious.

  • 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-15T05:15:47+00:00Added an answer on May 15, 2026 at 5:15 am

    It’s personal preference, although there’s widespread support for having some distinction. Even in C# I don’t think there’s one widely used convention.

    Jeff Prosise says

    As a matter of personal preference I typically prefix private fields with an underscore [in C#] … This convention is used quite a lot in the .NET framework but it is not used throughout.

    From the .NET Framework Design Guidelines 2nd Edition page 73.

    Jeffrey Richter says

    I make all my fields private and I prefix my instance fields with "m_" and my static fields with "s_" [in C#]

    From the .NET Framework Design Guidelines 2nd Edition page 47. Anthony Moore (BCL team) also thinks using "m_" and "s_" is worth consideration, page 48.

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

Sidebar

Related Questions

I have two XSLT file A .xslt and B .xslt, where A .xslt includes
I generally don't use Interface Builder (I hate it). But I am being forced
Maybe I'm coming at this the wrong way, but in my application I have
[1] states: When data is deleted from a heap, the data on the page
I keep running into problems with Unresolved imports in my Django project (in Eclipse
Conventional wisdom tells us that high-volume enterprise java applications should use thread pooling in
First - what happens if I don't give a passphrase? Is some sort of
write now, I am working on an app that is based on an application
I've got a class which overrides equals() and I want to see where this
My ASP.NET application is a download application (no pages) which reads huge binary files

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.