I was playing around with some code and I was wondering if any can tell me what the curly braces in this code represents. I thought it would've been for an empty object but that doesn't seem to be the case.
Person person = new Person{};
if (person is {}){
Console.WriteLine("Person is empty.");
} else {
Console.WriteLine("Person is not empty.");
}
It compiles just fine; but if I populate the properties of the person class it still falls into the person is empty part of the if statement.