Atomic chunks of code for reuse with the null-coalescing operator

/ Published in: C#
Save to your folder(s)

A style of code reuse. Breaking methods (in this case MVC controller) into very small reusable atomic chunks that either perform an operation then return an ActionResult OR return null, then using with the null-coalescing operator.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.