Evil use of Maybe monad and extension methods in C#?

前端 未结 8 1853
面向向阳花
面向向阳花 2020-12-07 17:11

edit 2015 This question and its answers are no longer relevant. It was asked before the advent of C# 6, which has the null propagating opertor (?.)

8条回答
  •  庸人自扰
    2020-12-07 17:25

    The initial sample works and is the easiest to read at a glance. Is there really a need to improve on that?

提交回复
热议问题