public override string ToString() { if (ApplicationName.IsNotEmpty()) { return(string.Format("ApplicationName: {0}, PortNumber: {1}, PhysicalPath: {2}", ApplicationName, PortNumber, PhysicalPath)); } return("{0} with port number {1}".ToFormat(PhysicalPath, PortNumber)); }