It’s a so-called auto property, and is essentially a shorthand for the following (similar code will be generated by the compiler):
private string name; public string Name { get { return this.name; } set { this.name = value; } }
Related Posts:
- How can I convert String to Int?
- What is parsing?
- CS0120: An object reference is required for the nonstatic field, method, or property ‘foo’
- How to fix “HTTP Error 400. The size of the request headers is too long” error from azure cloud services?
- What is the difference between declarative and imperative paradigm in programming?
- Could not load file or assembly or one of its dependencies
- Group by in LINQ
- C# An established connection was aborted by the software in your host machine
- OnCollisionEnter() not working in Unity3D
- Difference between virtual and abstract methods
- Unable to connect to web server ‘IIS Express’
- Twilio TwilioRestClient does not contain a definition for SendSmsMessage
- How to open .dll files to see what is written inside?
- how does Request.QueryString work?
- How to convert byte array to string
- C# Java HashMap equivalent
- System.Net.Http: missing from namespace? (using .net 4.5)
- Windows .NET API / Windows 7 / Bluetooth communication with Intel Curie Arduino / Genuino 101
- WFP Grid: MouseRightButtonDown firing occuring BEFORE SelectionChanged on grid. Causing syncing issue
- Can’t add script component because the script class cannot be found?
- ‘do…while’ vs. ‘while’
- Visual Studio /**/ comment shortcut?
- Unable to resolve service for type while attempting to activate
- Multiple Inheritance in C#
- Best way to generate a random float in C#
- Check if list is empty in C#
- Wait one second in running program
- Deserialize JSON with C#
- “Error while trying to run project: Unable to start program”. Can run program only once. Then VS needs restart
- What is WebResource.axd?
- Associating enums with strings in C#
- Proper Linq where clauses
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details
- How to resolve this System.IO.FileNotFoundException
- What is the best way to implement a “timer”?
- SmtpException: Unable to read data from the transport connection: net_io_connectionclosed
- How to fix “namespace x already contains a definition for x” error? Happened after converting to VS2010
- How can I get the application’s path in a .NET console application?
- How do I create a Shared Code project (.shproj)
- OnCollisionEnter2D not being executed?
- How do I encode and decode a base64 string?
- How to keep console window open
- Tree data structure in C#
- What is 0x10 in decimal?
- Visual Studio: The Operation could not be completed. The parameter is incorrect
- Member ‘
‘ cannot be accessed with an instance reference - Sequence contains no matching element
- when do you need .ascx files and how would you use them?
- How to convert code from C# to PHP
- How to open a new form from another form
- C# – How to convert string to char?
- The entity type
is not part of the model for the current context - Index was out of range. Must be non-negative and less than the size of the collection parameter name:index
- Is dependency injection useful in C++
- Parse Json string in C#
- Recommendation for C# Matrix Library
- Deep cloning objects
- Regular expression “^[a-zA-Z]” or “[^a-zA-Z]”
- .NET graph library around?
- Input string was not in a correct format
- MSSQL Error ‘The underlying provider failed on Open’
- An object reference is required to access a non-static member
- Task vs Thread differences
- There is no ViewData item of type ‘IEnumerable
‘ that has the key country - C# – Rounding Down to Nearest Integer
- How to update the value stored in Dictionary in C#?
- Verify a method call using Moq
- XmlSerializer – There was an error reflecting type
- Run Command Prompt Commands
- Cannot implicitly convert type ‘System.Collections.Generic.List< >‘ to ‘System.Collections.Generic.IList< >‘
- How can I wait for a thread to finish with .NET?
- Unexpected character encountered while parsing value
- How do I exit a WPF application programmatically?
- Embedded statement cannot be a declaration or labeled statement
- MailMessage.To.Add() throwing exception : “An invalid character was found in the mail header: ‘,’.”
- Remove duplicates from a List
in C# - How to deserialize xml to object [duplicate]
- OnCollisionEnter is not called in unity
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- How to create a new object instance from a Type
- Troubleshooting “program does not contain a static ‘Main’ method” when it clearly does…?
- does not implement interface member
- Unity 5.2.2 changing Visual Studio back to MonoDevelop
- Using FolderBrowserDialog in WPF application
- How to make Check Box List in ASP.Net MVC
- Is there an equivalent to the C# “var” keyword in C++/CLI?
- Differences between SFTP and “FTP over SSH”
- When should I use a List vs a LinkedList
- Remove punctuation from string with Regex
- Unity – How to stop Play Mode in case of infinite loop?
- The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required?
- Go To Definition: “Cannot navigate to the symbol under the caret.”
- Why am I getting an Exception with the message “Invalid setup on a non-virtual (overridable in VB) member…”?
- Is there a keyboard shortcut to maximize the Game window in Unity in Play Mode?
- IF Statement multiple conditions, same statement
- What is the easiest way to handle associative array in c#?
- What does the M stand for in C# Decimal literal notation?
- Iif equivalent in C#
- Convert an array to string
- is inaccessible due to its protection level