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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:15:14+00:00 2026-06-09T06:15:14+00:00

What does the @ in this mean (I know it’s using an obsolete .NET

  • 0

What does the @ in this mean (I know it’s using an obsolete .NET Framework 1.1 ConfigurationSettings.AppSettings)?

@ConfigurationSettings.AppSettings["some_setting"];

This is NOT a string literal: Using the literal '@' with a string variable

The actual code:

_scale_id_regex = @ConfigurationSettings.AppSettings["ScaleIdRegEx"];

In a regular .cs file which is part of a Windows Service and _scale_id_regex is just a private string in the class, so ASP.NET and Razor are not involved.

  • 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-09T06:15:15+00:00Added an answer on June 9, 2026 at 6:15 am

    It’s called a verbatim identifier. It allows you to name variables after reserved words. e.g.

    string @string = string.Empty;
    object @object = new object();
    int @int = 1;
    ...
    

    The code you have is valid, but I don’t believe @ services any real purpose there. Since this got upvoted faster than I could refresh my page, here’s what the ECMA C# Language Specification, section 9.4.2 says.

    The prefix “@” enables the use of keywords as identifiers, which is
    useful when interfacing with other programming languages. The
    character @ is not actually part of the identifier, so the identifier
    might be seen in other languages as a normal identifier, without the
    prefix. An identifier with an @ prefix is called a verbatim
    identifier.

    The code you posted is valid because this is allowed by the language specification, albeit discouraged.

    [Note: Use of the @ prefix for identifiers that are not keywords is
    permitted, but strongly discouraged as a matter of style. end note]

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

Sidebar

Related Questions

Does anyone know what these error's mean? I get this when I click a
I want to know what does RETURN_VALUE mean! I'm stuck at this thing. How
Does this mean I can't update another table from a trigger if I'm using
I know that constructors cannot be synchronized in Java. Does this mean that if
What does this mean incubating? well i know what the word means but why
What does this mean please? (\s|^) I know what \s is. What I don't
So I know Facebook access tokens have an expiration date. What does this mean
I am probe in Unix. I want to know what does this mean? type
What does this mean: Next add reference to: MySql.Data actually I have downloaded mysql
What does this mean and why am I getting this error. Any suggestions on

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.