In C# when you have a property:
public class Person
{
public int AnIntegerValue
{
get
{
//Some logic
return somevalue;
}
}
}
When you go and get a Person from the database:
var mike = Uow.GetPerson("Mike");
is the AnIntegerValue evaluated immediately or does the code wait for:
mike.AnIntegerValue
I'm wondering because this would obviously affect performance if you were to put a lot of logic into the property and it was eager loaded.