Using conditional (?:) operator for method selection in C# (3.0)?

后端 未结 7 1973
日久生厌
日久生厌 2020-12-01 11:49

I\'m refactoring some code.

Right now there are quite a few places with functions like this:

string error;
if (a) {
   error = f1(a, long, parameter,         


        
7条回答
提交回复
热议问题