c# generate constructor code example
Example 1: c# constructor
public class Person
{
private string last;
private string first;
public Person(string lastName, string firstName)
{
last = lastName;
first = firstName;
}
// Remaining implementation of Person class.
}
Example 2: visual studio 2019 empty constructor shortcut
"ctor" + TAB + TAB