Is good to call function in other function parameter?
问题 I suppose this: public static string abc() { return "abc"; } Is better to call this function in this way: string call = abc(); Console.writeline(call); Than this? console.writeline(abc()); is there any reason to prefer one to the other? 回答1: Both are valid. However, out of experience I have concluded that the first option is more suitable for readability and ease of maintenance. I can't count how many times I have changed from the "compact" style to the first one as a help for a debugging