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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:17:44+00:00 2026-05-29T17:17:44+00:00

There is no (explicit) reference to a firstName private variable which FirstName is supposed

  • 0

There is no (explicit) reference to a firstName private variable which FirstName is supposed to be hiding. Could you explain how this works?
I assume there is some private variable that is being getted and setted.
Thanks.

// auto-implemented property FirstName
public string FirstName { get; set; }
  • 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-29T17:17:45+00:00Added an answer on May 29, 2026 at 5:17 pm

    Basically the compiler converts your code into something like this:

    private string <__>firstName;
    
    public string FirstName
    {
        get { return <__>firstName; }
        set { <__>firstName = value; }
    }
    

    That’s unlikely to be the exact name, but the use of angle brackets in the name is important – because it makes it an unspeakable name. (That’s unofficial terminology, but widely used – I don’t know whether Eric Lippert actually coined it, or whether he was just the first person to use it in something I read.) It’s a name which isn’t a valid C# identifier, but which the CLR is quite happy with. That has two benefits:

    • The compiler doesn’t need to worry about naming collisions with your identifiers
    • The compiler doesn’t need to worry about whether you’re trying to refer to the field in your own code – you can’t, because the name is unspeakable!

    It uses the same technique for all kinds of other generated code – anonymous types, anonymous functions, iterator blocks etc.

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

Sidebar

Related Questions

I'm currently creating an explicit reference to this in the outer class so that
Is there any way to use DataContext to execute some explicit SQL and return
Based on http://www.cplusplus.com/reference/stl/vector/vector/ explicit vector ( const Allocator& = Allocator() ); This vector constructor
For some syntactic sugar I want to return a reference to this , but
Is there explicit support for Single Table Inheritance in Django? Last I heard, the
Does Delphi call inherited on overridden procedures if there is no explicit call in
Is there any efficiency difference in an explicit vs implicit inner join? For example:
There is previous little on the google on this subject other than people asking
There are numerous Agile software development methods. Which ones have you used in practice
First, I acknowledge the possibility that this question could be a duplicate; just let

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.