C# deep accessing objects performance
See the question and my original answer on StackOverflowThe second one is better because you never know what's hiding behind a '.'. It could be a database call or some other expensive operation.
The second one is better because you never know what's hiding behind a '.'. It could be a database call or some other expensive operation.