Quote:
I tried converting with "https://converter.telerik.com/" and others but without success, System.NotSupportedException: UnsafeKeyword is not supported!
Most of these are not well maintained or simply abandoned. What I find, as a better solution, not just for C# <-> VB, but any <-> any, is
AOpen's ChatGPT[
^]. When in a pinch, I find that it is very good at converting code.
Here is how to ask:
Convert the following C# to VB.NET:
var CurrentWord = new StringBuilder();
char[] Buff = Text.ToCharArray();
fixed (char* c = &Buff[0])
And it will give you an answer. But note: while it is very good at conversion, it's not the best at taking a statement and converting to code. Often, more than not, you will have to either ask it more questions, debug and modify the code that it gives you, or simply abandon and write it yourself.