What is the C# equivalent of Window in JavaScript?

I’m fairly new to Unity but I’ve been using JavaScript in coding browser based apps for a while. Can anyone tell me what the C# equivalent of Window in JavaScript is? I am trying to access several variables using very similar code and I would like to do it using a for loop. In JavaScript I would do it like:

var north = “North”;
var south = “South”;
var west = “West”;
var east = “East”;

var directions = [“north”, “south”, “east”, “west”];

for (i = 0; i < ; i++) {
window[directions[0]] = “”;

What would be the C# equivalent of this code, in particular the Window part? Thanks.

The Window object only exists in the context of Javascript for the web, where it is an object reference to the parent browser window - there is no equivalent in Javascript or C# for Unity.

What are you trying to achieve? It’s unclear what the function of Window in the above code is - it could simply be reduced to:

string[] directions = {"north", "south", "east", "west"};
for (int i=0; i<...; i++) { directions[0] = ""; }