public void OnCloseIssue(object o) { GitHubApi.CloseIssue(GitHubApi.Issue, Comment); var closable = o as IClosable; if (closable != null) { closable.Close(); } }