Tuesday, May 26, 2015

Did you know that you may have a space after a dot in C#'s dot-dot-dot syntax?

For example this:

var foo = Bar.Baz.Qux;

 
 

...may be written like this:

var foo = Bar.Baz. Qux;

 
 

...and it will still work just fine.

No comments:

Post a Comment