I have seen many using this new feature, but what is the advantage of using these expressions?
public override string ToString() => string.Format("{0}, {1}", First, Second); public string Text => string.Format("{0}: {1} - {2} ({3})", TimeStamp, Process, Config, User);
This question is different from this because I am not just asking if performance and efficiency are changing, but also about the difference between compiled code (IL code), and if this is best practice and should be used in the real world.
This question is also not off topic , because I ask for real work experience in the enterprise, and not for recommendations. Therefore, do not recommend, but explain why you would like or why you would not use this feature and what impressions you have with it!
source share