- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
List<dynamic> reporting = item.company_profile_data?.AnnualFinancialStatementFiles ??
new List<dynamic>();
string annual = "";
foreach (var report in reporting)
{
if (report.File != null)
{
string name = report.File?.Info?.Name;
if (name != null) annual = annual + name.Substring(0, name.LastIndexOf('.')) + ", ";
}
}
item.Name = annual;
guest 22.04.2016 22:05 # −3
kegdan 22.04.2016 23:57 # +1
Моветон же. String.Empty же. Же же
3_14dar 23.04.2016 00:05 # 0
kegdan 23.04.2016 00:06 # 0
nihau 25.04.2016 11:14 # 0
3_14dar 25.04.2016 22:52 # 0
3_14dar 23.04.2016 00:06 # 0
Штоэта?
guest 23.04.2016 00:16 # 0
3_14dar 23.04.2016 00:40 # +3
guest 23.04.2016 00:44 # +4
3_dar 23.04.2016 10:16 # +2
kerman 23.04.2016 10:25 # +1
report.File?. делает не нужной строку if (report.File != null)
guest 23.04.2016 17:01 # −1