i'm printing all non null values from array which contain null values. i want to print only non null values
string a = "welcome";
var rm = new string [] {null,"hai",null,"15"};
Console.WriteLine("{0}",!String.IsNullOrEmpty(rm[0])? a
:!String.IsNullOrEmpty(rm[1]) ? a +":"+ rm[1] :
!String.IsNullOrEmpty(rm[2]) ? a +":"+ rm[1]+ ":"+rm[2] : a +":"+ rm[1]+
":"+rm[2]+":"+rm[3] );
actual output : welcome:hai
Expected output : welcome:hai:15