# Interoperability with .NET

**URL:** <https://discourse.julialang.org/t/interoperability-with-net/19611>\
**Category:** General Usage\
**Tags:** dotnet, interoperability\
**Created:** [January 14, 2019, 11:09am UTC](https://discourse.julialang.org/t/interoperability-with-net/19611 "2019-01-14T11:09:22Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [January 11, 2022, 5:29pm UTC](https://discourse.julialang.org/t/interoperability-with-net/19611/25 "2022-01-11T17:29:08Z")

</div>

I actually just finished developing an interface between Julia and .NET for an internal project based on information from @oheil .  
When I started that, I was a newcomer to both Julia and C#/VB.net so it seemed infeasible with the C interface.  
So I did it using communications over pipes, like a client-server communication.  
Though this takes time, (de-)serialization seems to be fine (i.e negligible to the user) in most cases, even with relatively large arrays (about tens of thousands of double precision numbers).

I do not know if you tackled this issue already but the main missing part for me in the documentation about julia’s C interface was how to use it properly to load and interact with modules and how to handle special types. I was completely lost i the whole packing / unpacking of pointers to structures…

Also, there are some base types that exist in Julia that do not in .NET, so some conversions need to be done explicitely. For instance I discovered that my .NET (maybe it is a matter of version) did not support `Int8`.

Keep up the work ! Cheers !

EDIT : See this answer from @Shuhua maybe its worth converging on this [Correct process to use julia code from C# or VB .NET - #17 by Shuhua](https://discourse.julialang.org/t/correct-process-to-use-julia-code-from-c-or-vb-net/58018/17)

---

_[View the full topic](https://discourse.julialang.org/t/interoperability-with-net/19611)._
