Answers for "c# conditional format string"

C#
0

c# conditional format string

string formatString = items.Count > 0 ? "Items: {0}; Values: {1}" : "Values: {1}";
return string.Format(formatString, itemList, valueList);
Posted by: Guest on October-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language