[C#] Move C# side to a TypeScript-based array/string conversion