public void addComment(JiraIssue issue, string comment) { #if PLVS_133_WORKAROUND object[] comments = service.getComments(Token, issue.Key); if (comments == null) { throw new Exception("Unable to retrieve information about the RemoteComment type"); } Type type = comments.GetType(); Type commentType = type.GetElementType(); ConstructorInfo constructor = commentType.GetConstructor(new Type[] {}); object commentObject = constructor.Invoke(new object[] {}); setObjectProperty(commentObject, "body", comment); service.addComment(Token, issue.Key, commentObject); #else service.addComment(Token, issue.Key, new RemoteComment { body = comment }); #endif }