I am trying to get a string value like below
string bsgrpval;
bsgrpval =
ConfigurationSettings.AppSettings["Pricing_IncludeALLBaseLineGroup"]=="False"
? string.Empty
: bsgrp.ForEach(x => bsgrpval = bsgrpval + x.Value.ToString() + ",");
我正在经历以下错误:
Type of conditional expression cannot be determined because there is no implicit conversion between string and void
有些人能够帮助我这样做?