You can use reserved identifiers as variable names in C Sharp

December 8th, 2017 | #csharp

TIL you can use reserved identifiers in C# if you use @ as a prefix.

Read more

Null coalescing operator in C Sharp, PHP, Bash and SQL

November 27th, 2017 | #csharp #php #bash #sql

TIL about the null coalescing operator in C#, PHP, Bash and SQL. In general, the null coalescing operator returns the result of its first operand—if it exists and is not null.

string siteName = suppliedName ?? "Default Name";

/* is logically equivalent to*/

string siteName = suppliedName != null ? suppliedName : "Default Name";
Read more

© 2018 Tonny Garić | With from Nijmegen, The Netherlands