what is this code snippet doing? - C#