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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:17:02+00:00 2026-05-14T04:17:02+00:00

In my naming convention, I use _name for private member variables. I noticed that

  • 0

In my naming convention, I use _name for private member variables. I noticed that if I auto-generate a constructor with ReSharper, if the member is a keyword, it will generate an escaped keyword. For example:

class IntrinsicFunctionCall
{
    private Parameter[] _params;
    public IntrinsicFunctionCall(Parameter[] @params)
    {
        _params = @params;
    }
}

Is this generally considered bad practice or is it OK? It happens quite frequently with @params and @interface.

EDIT: This doesn’t actually add a prefix to the variable name. If accessing that variable from a different .NET language, i.e. F#, it would just be params. In fact, in C#, if you write @x it’s exactly equivalent to x.

  • 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-14T04:17:03+00:00Added an answer on May 14, 2026 at 4:17 am

    Using language keywords as identifiers impacts the readability. Granted, proper syntax high-lightning helps a bit, but it’s better to not rely on the editor features only.

    Consider the following (exaggeratedly unreadable, obviously :-)) code:

    interface IInterfaceFactory<T>
    {
       T CreateInstance(params object[] @params);
    }
    
    class SomeClass
    {
        IMyOtherInterface _interface;
    
        public IMyOtherInterface Interface
        {
            get { return _interface; }
        }
    
        public SomeClass(params object[] @params)
        {
            SomeInterface<IMyOtherInterface> interfaceFactory = new SomeInterface<IMyOtherInterface>();
            IMyOtherInterface @interface = interfaceFactory.CreateInstance(@params);
            if (@interface->IsValid())
            {
                _interface = @interface;
            }
            else
            {
                _interface = interfaceFactory.CreateInstance();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to come up with a good naming convention for boolean variables that
Do you use a naming convention for your XML namespaces? And if so, what
The naming convention for constants in C# is Pascal casing: private const int TheAnswer
I am trying to figure out a naming convention to use when naming my
Possible Duplicate: What package naming convention do you use for personal/hobby projects in Java?
Possible Duplicate: What package naming convention do you use for personal/hobby projects in Java?
I'm creating a database and I want to use a different naming convention other
I have a naming convention on a bunch of files that I'd like to
I know the naming convention for class methods in C# is to begin with
What is your naming convention for DATETIME columns (in my case, using MS SQL

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.