{"action":"created","comment":{"url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments/233062513","pull_request_review_id":174391737,"id":233062513,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzA2MjUxMw==","diff_hunk":"@@ -91,8 +91,96 @@ scripts, which you can copy to your current working directory by running\n [the pyd docs](https://pyd.readthedocs.io/en/latest/dub.html) for more\n information.\n \n+# .NET Support\n+\n+Autowrap can also generate C# bindings to D libraries. Generating bindings for C# is a two-step process. First we must generate a C# compatible C-interface for the D library, then we build and run a version of the library that emits the corresponding C# interface code.\n+\n+### What Works:\n+\n+* Primitive Types\n+  * string\n+  * wstring\n+  * dstring\n+  * byte\n+  * ubyte\n+  * short\n+  * ushort\n+  * int\n+  * uint\n+  * long\n+  * ulong\n+  * float\n+  * double\n+* Structs\n+  * Fields\n+  * Properties\n+  * Methods\n+* Classes\n+  * Constructors\n+  * Fields\n+  * Properties\n+  * Methods\n+\n+1-Dimensional Ranges are implemented but only lightly tested and may not work in all cases. Higher dimensional ranges are not supported.\n+\n+## Generating .NET Interfaces\n+\n+To generate the C-interface use the following example replacing \"csharp\" with the dub name of your library (ex: csharp builds to libcsharp&#46;so) and replace \"csharp.library\" with the name of the module you want to wrap.\n \n-### Our sponsors\n+```d\n+import csharp.library;\n+import autowrap.csharp.boilerplate;\n+import autowrap.reflection;\n+\n+mixin(\n+    wrapCSharp(\"csharp\",\n+        Modules(\n+            Module(\"csharp.library\")\n+        )\n+    )\n+);\n+```\n+\n+To generate the C# interface use the writeCSharpFile method as follows to dump the output to a file of your choice.\n+\n+```d\n+string code = writeCSharpFile!(Module(\"csharp.library\"))(\"csharp\", \"Autowrap.CSharp\");\n+```\n+\n+The template parameter is a list of module to wrap, the first parameter is the dub library name, and the second parameter is the root namespace of the C# project.","path":"README.md","position":70,"original_position":70,"commit_id":"6af2b50e6be07e540c6f9a68c9a08b3179fa9439","original_commit_id":"6af2b50e6be07e540c6f9a68c9a08b3179fa9439","user":{"login":"atilaneves","id":4956425,"node_id":"MDQ6VXNlcjQ5NTY0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/4956425?v=4","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"body":"Conventions like these are hard to remember and harder to get right. Please use types to disambiguate the parameters.","created_at":"2018-11-13T14:37:36Z","updated_at":"2018-11-13T14:58:01Z","html_url":"https://github.com/kaleidicassociates/autowrap/pull/20#discussion_r233062513","pull_request_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments/233062513"},"html":{"href":"https://github.com/kaleidicassociates/autowrap/pull/20#discussion_r233062513"},"pull_request":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20","id":230462747,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDYyNzQ3","html_url":"https://github.com/kaleidicassociates/autowrap/pull/20","diff_url":"https://github.com/kaleidicassociates/autowrap/pull/20.diff","patch_url":"https://github.com/kaleidicassociates/autowrap/pull/20.patch","issue_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20","number":20,"state":"open","locked":false,"title":"Add Initial C# Support","user":{"login":"LightBender","id":1262302,"node_id":"MDQ6VXNlcjEyNjIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1262302?v=4","gravatar_id":"","url":"https://api.github.com/users/LightBender","html_url":"https://github.com/LightBender","followers_url":"https://api.github.com/users/LightBender/followers","following_url":"https://api.github.com/users/LightBender/following{/other_user}","gists_url":"https://api.github.com/users/LightBender/gists{/gist_id}","starred_url":"https://api.github.com/users/LightBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightBender/subscriptions","organizations_url":"https://api.github.com/users/LightBender/orgs","repos_url":"https://api.github.com/users/LightBender/repos","events_url":"https://api.github.com/users/LightBender/events{/privacy}","received_events_url":"https://api.github.com/users/LightBender/received_events","type":"User","site_admin":false},"body":"This PR adds support for C# wrapper code-generation of the following:\r\nFunctions\r\nStructs\r\nClasses\r\nInitial Range Support","created_at":"2018-11-13T12:47:50Z","updated_at":"2018-11-13T14:58:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e51a17f51145869d298ae49210f9a8a4d9d153f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/commits","review_comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/comments","review_comment_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20/comments","statuses_url":"https://api.github.com/repos/kaleidicassociates/autowrap/statuses/6af2b50e6be07e540c6f9a68c9a08b3179fa9439","head":{"label":"LightBender:csharp","ref":"csharp","sha":"6af2b50e6be07e540c6f9a68c9a08b3179fa9439","user":{"login":"LightBender","id":1262302,"node_id":"MDQ6VXNlcjEyNjIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1262302?v=4","gravatar_id":"","url":"https://api.github.com/users/LightBender","html_url":"https://github.com/LightBender","followers_url":"https://api.github.com/users/LightBender/followers","following_url":"https://api.github.com/users/LightBender/following{/other_user}","gists_url":"https://api.github.com/users/LightBender/gists{/gist_id}","starred_url":"https://api.github.com/users/LightBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightBender/subscriptions","organizations_url":"https://api.github.com/users/LightBender/orgs","repos_url":"https://api.github.com/users/LightBender/repos","events_url":"https://api.github.com/users/LightBender/events{/privacy}","received_events_url":"https://api.github.com/users/LightBender/received_events","type":"User","site_admin":false},"repo":{"id":145404499,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0MDQ0OTk=","name":"autowrap","full_name":"LightBender/autowrap","private":false,"owner":{"login":"LightBender","id":1262302,"node_id":"MDQ6VXNlcjEyNjIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1262302?v=4","gravatar_id":"","url":"https://api.github.com/users/LightBender","html_url":"https://github.com/LightBender","followers_url":"https://api.github.com/users/LightBender/followers","following_url":"https://api.github.com/users/LightBender/following{/other_user}","gists_url":"https://api.github.com/users/LightBender/gists{/gist_id}","starred_url":"https://api.github.com/users/LightBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LightBender/subscriptions","organizations_url":"https://api.github.com/users/LightBender/orgs","repos_url":"https://api.github.com/users/LightBender/repos","events_url":"https://api.github.com/users/LightBender/events{/privacy}","received_events_url":"https://api.github.com/users/LightBender/received_events","type":"User","site_admin":false},"html_url":"https://github.com/LightBender/autowrap","description":"Wrap existing D code for use in other environments such as Python and Excel","fork":true,"url":"https://api.github.com/repos/LightBender/autowrap","forks_url":"https://api.github.com/repos/LightBender/autowrap/forks","keys_url":"https://api.github.com/repos/LightBender/autowrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LightBender/autowrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LightBender/autowrap/teams","hooks_url":"https://api.github.com/repos/LightBender/autowrap/hooks","issue_events_url":"https://api.github.com/repos/LightBender/autowrap/issues/events{/number}","events_url":"https://api.github.com/repos/LightBender/autowrap/events","assignees_url":"https://api.github.com/repos/LightBender/autowrap/assignees{/user}","branches_url":"https://api.github.com/repos/LightBender/autowrap/branches{/branch}","tags_url":"https://api.github.com/repos/LightBender/autowrap/tags","blobs_url":"https://api.github.com/repos/LightBender/autowrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LightBender/autowrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LightBender/autowrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/LightBender/autowrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LightBender/autowrap/statuses/{sha}","languages_url":"https://api.github.com/repos/LightBender/autowrap/languages","stargazers_url":"https://api.github.com/repos/LightBender/autowrap/stargazers","contributors_url":"https://api.github.com/repos/LightBender/autowrap/contributors","subscribers_url":"https://api.github.com/repos/LightBender/autowrap/subscribers","subscription_url":"https://api.github.com/repos/LightBender/autowrap/subscription","commits_url":"https://api.github.com/repos/LightBender/autowrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/LightBender/autowrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/LightBender/autowrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/LightBender/autowrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/LightBender/autowrap/contents/{+path}","compare_url":"https://api.github.com/repos/LightBender/autowrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LightBender/autowrap/merges","archive_url":"https://api.github.com/repos/LightBender/autowrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LightBender/autowrap/downloads","issues_url":"https://api.github.com/repos/LightBender/autowrap/issues{/number}","pulls_url":"https://api.github.com/repos/LightBender/autowrap/pulls{/number}","milestones_url":"https://api.github.com/repos/LightBender/autowrap/milestones{/number}","notifications_url":"https://api.github.com/repos/LightBender/autowrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LightBender/autowrap/labels{/name}","releases_url":"https://api.github.com/repos/LightBender/autowrap/releases{/id}","deployments_url":"https://api.github.com/repos/LightBender/autowrap/deployments","created_at":"2018-08-20T10:45:37Z","updated_at":"2018-08-23T20:49:22Z","pushed_at":"2018-11-13T12:36:39Z","git_url":"git://github.com/LightBender/autowrap.git","ssh_url":"git@github.com:LightBender/autowrap.git","clone_url":"https://github.com/LightBender/autowrap.git","svn_url":"https://github.com/LightBender/autowrap","homepage":null,"size":828,"stargazers_count":0,"watchers_count":0,"language":"D","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kaleidicassociates:master","ref":"master","sha":"25c308624f1d1403a7938909fe7dae850526b493","user":{"login":"kaleidicassociates","id":15332810,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzMyODEw","avatar_url":"https://avatars0.githubusercontent.com/u/15332810?v=4","gravatar_id":"","url":"https://api.github.com/users/kaleidicassociates","html_url":"https://github.com/kaleidicassociates","followers_url":"https://api.github.com/users/kaleidicassociates/followers","following_url":"https://api.github.com/users/kaleidicassociates/following{/other_user}","gists_url":"https://api.github.com/users/kaleidicassociates/gists{/gist_id}","starred_url":"https://api.github.com/users/kaleidicassociates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaleidicassociates/subscriptions","organizations_url":"https://api.github.com/users/kaleidicassociates/orgs","repos_url":"https://api.github.com/users/kaleidicassociates/repos","events_url":"https://api.github.com/users/kaleidicassociates/events{/privacy}","received_events_url":"https://api.github.com/users/kaleidicassociates/received_events","type":"Organization","site_admin":false},"repo":{"id":130044944,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwNDQ5NDQ=","name":"autowrap","full_name":"kaleidicassociates/autowrap","private":false,"owner":{"login":"kaleidicassociates","id":15332810,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MzMyODEw","avatar_url":"https://avatars0.githubusercontent.com/u/15332810?v=4","gravatar_id":"","url":"https://api.github.com/users/kaleidicassociates","html_url":"https://github.com/kaleidicassociates","followers_url":"https://api.github.com/users/kaleidicassociates/followers","following_url":"https://api.github.com/users/kaleidicassociates/following{/other_user}","gists_url":"https://api.github.com/users/kaleidicassociates/gists{/gist_id}","starred_url":"https://api.github.com/users/kaleidicassociates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaleidicassociates/subscriptions","organizations_url":"https://api.github.com/users/kaleidicassociates/orgs","repos_url":"https://api.github.com/users/kaleidicassociates/repos","events_url":"https://api.github.com/users/kaleidicassociates/events{/privacy}","received_events_url":"https://api.github.com/users/kaleidicassociates/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kaleidicassociates/autowrap","description":"Wrap existing D code for use in other environments such as Python and Excel","fork":false,"url":"https://api.github.com/repos/kaleidicassociates/autowrap","forks_url":"https://api.github.com/repos/kaleidicassociates/autowrap/forks","keys_url":"https://api.github.com/repos/kaleidicassociates/autowrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaleidicassociates/autowrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaleidicassociates/autowrap/teams","hooks_url":"https://api.github.com/repos/kaleidicassociates/autowrap/hooks","issue_events_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/events{/number}","events_url":"https://api.github.com/repos/kaleidicassociates/autowrap/events","assignees_url":"https://api.github.com/repos/kaleidicassociates/autowrap/assignees{/user}","branches_url":"https://api.github.com/repos/kaleidicassociates/autowrap/branches{/branch}","tags_url":"https://api.github.com/repos/kaleidicassociates/autowrap/tags","blobs_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaleidicassociates/autowrap/statuses/{sha}","languages_url":"https://api.github.com/repos/kaleidicassociates/autowrap/languages","stargazers_url":"https://api.github.com/repos/kaleidicassociates/autowrap/stargazers","contributors_url":"https://api.github.com/repos/kaleidicassociates/autowrap/contributors","subscribers_url":"https://api.github.com/repos/kaleidicassociates/autowrap/subscribers","subscription_url":"https://api.github.com/repos/kaleidicassociates/autowrap/subscription","commits_url":"https://api.github.com/repos/kaleidicassociates/autowrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaleidicassociates/autowrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaleidicassociates/autowrap/contents/{+path}","compare_url":"https://api.github.com/repos/kaleidicassociates/autowrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaleidicassociates/autowrap/merges","archive_url":"https://api.github.com/repos/kaleidicassociates/autowrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaleidicassociates/autowrap/downloads","issues_url":"https://api.github.com/repos/kaleidicassociates/autowrap/issues{/number}","pulls_url":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls{/number}","milestones_url":"https://api.github.com/repos/kaleidicassociates/autowrap/milestones{/number}","notifications_url":"https://api.github.com/repos/kaleidicassociates/autowrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaleidicassociates/autowrap/labels{/name}","releases_url":"https://api.github.com/repos/kaleidicassociates/autowrap/releases{/id}","deployments_url":"https://api.github.com/repos/kaleidicassociates/autowrap/deployments","created_at":"2018-04-18T10:21:11Z","updated_at":"2018-11-01T11:13:43Z","pushed_at":"2018-11-13T12:47:51Z","git_url":"git://github.com/kaleidicassociates/autowrap.git","ssh_url":"git@github.com:kaleidicassociates/autowrap.git","clone_url":"https://github.com/kaleidicassociates/autowrap.git","svn_url":"https://github.com/kaleidicassociates/autowrap","homepage":null,"size":544,"stargazers_count":13,"watchers_count":13,"language":"D","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":4,"open_issues":4,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20"},"html":{"href":"https://github.com/kaleidicassociates/autowrap/pull/20"},"issue":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20"},"comments":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/kaleidicassociates/autowrap/statuses/6af2b50e6be07e540c6f9a68c9a08b3179fa9439"}},"author_association":"NONE"}}
{"actor":{"display_login":"atilaneves"}}