So I already got used to using the "usual way of instantiating as a beginner" which is
Employee emp = new Employee();
And then I saw this:
new Employee {
//Some code here...
}
The employee class has this:
public class Employee{
public string Name
public Employee{
Name = "Bob";
}
}
So what is the difference between the two?