Those are Auto-Implemented Properties (Auto Properties for short).
The compiler will auto-generate the equivalent of the following simple implementation:
private string _type;
public string Type
{
get { return _type; }
set { _type = value; }
}
More Related Contents:
- Why is it impossible to override a getter-only property and add a setter? [closed]
- Importing CSV data into C# classes
- Getters, setters, and properties best practices. Java vs. C#
- c# htmlagilitypack cant take /a
- Use Unity API from another Thread or call a function in the main Thread
- Multidimensional Array [][] vs [,] [duplicate]
- Is there a way of setting culture for a whole application? All current threads and new threads?
- Entity Framework async operation takes ten times as long to complete
- How to update record using Entity Framework 6?
- What is the use of ObservableCollection in .net?
- Could not find a part of the path … bin\roslyn\csc.exe
- mail sending with network credential as true in windows form not working
- Serialization of Entity Framework objects with One to Many Relationship
- How do Prefix (++x) and Postfix (x++) operations work?
- How do I override List’s Add method in C#?
- Find the most occurring number in a List
- Why aren’t variables declared in “try” in scope in “catch” or “finally”?
- How to retrieve the LoaderException property?
- Is there any way to start a GUI application from a windows service on Windows 7?
- ViewModel validation for a List
- C# – Inconsistent math operation result on 32-bit and 64-bit
- Best way to check if a Data Table has a null value in it
- How can I Unescape and Reescape strings in .net?
- C# set environment variable
- Entity Framework 4.1: Unable to cast from DbQuery to ObjectQuery
- C# generics compared to C++ templates [duplicate]
- How to hide some members of an interface
- The type arguments for method cannot be inferred from the usage
- Remove top and bottom padding from Text drawn on an Image
- Unable to change array size in Inspector variable in Unity?