dynamic row = new ExpandoObject(); if(item != null) { row.NewItem = item; }
Is there any better way to write this condition in single line.May by