Hacker News new | ask | show | jobs
by jussij 4481 days ago
> I guess I kinda wonder if I could avoid the null checks in C# somehow

Without seeing your code it is hard to say, but using an object extension might work?

On many occasions I've used object extensions to hide checking code deep inside the extension.

C# really got that feature right.

1 comments

Can you show an example of how this can be done?