public static void Main()
int time = 8,someaction=12;
Console.WriteLine("When object is null ");
string message = String.Format("Time: {0}, Action: {1}{2}", time,someaction,param==null?"": String.Format(", param : {0}",param) );
Console.WriteLine(message);
Console.WriteLine("When object is not null");
message = String.Format("Time: {0}, Action: {1}{2}", time,someaction,param==null?"": String.Format(", param : {0}",param) );
Console.WriteLine(message);