ai scripts to convert to c#