Can someone please help me understand this StackOverflow answer? - C#