I have this method:
private string serializeResult(string errorCode = null, string parameter1 = null, string parameter2 = null, string context = null) { r