# Correct process to use julia code from C# or VB .NET

**URL:** <https://discourse.julialang.org/t/correct-process-to-use-julia-code-from-c-or-vb-net/58018>\
**Category:** General Usage\
**Tags:** embedding, gui\
**Created:** [March 26, 2021, 2:41pm UTC](https://discourse.julialang.org/t/correct-process-to-use-julia-code-from-c-or-vb-net/58018 "2021-03-26T14:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Post date:** [July 17, 2021, 8:46am UTC](https://discourse.julialang.org/t/correct-process-to-use-julia-code-from-c-or-vb-net/58018/17 "2021-07-17T08:46:44Z")

</div>

Hi, @BambOoxX and @tdierickx.

As inspired by the [Interoperability with .NET](https://discourse.julialang.org/t/interoperability-with-net/19611), I have made some attempt to embed Julia inside a C# (or .NET in general) program. Though the raw C API is a little verbose, it seems feasible. I have prepared a series of brief tutorials for a beginner and for my own reference. Please check [JuliaCSharp/Embedding at main · ShuhuaGao/JuliaCSharp · GitHub](https://github.com/ShuhuaGao/JuliaCSharp/tree/main/Embedding). Hope it helps. Any feedback is welcome. 😀

The plan next is to craft a .NET library that provides some wrapper classes to hide all these C API details. I have found a preliminary attempt here: [GitHub - WangyuHello/JuliaSharp: C# Interop for Julia](https://github.com/WangyuHello/JuliaSharp) , which may serve as an initial reference.

---

_[View the full topic](https://discourse.julialang.org/t/correct-process-to-use-julia-code-from-c-or-vb-net/58018)._
