Trouble with converting some JS code to C#

I have a nice object pooling script written in JS but I need C#. I’ve been teaching myself C# and don’t know jack about JS, so I’m going through it slowly. I’ve come to a few lines where I don’t quite understand their function or how to convey it in C#:

static var instance : EasyObjectPool;

function Start () {
	
	instance = this;

Particularly, I don’t understand the first line. It’s not really like anything I’ve seen in C# before. EasyObjectPool is the name of the script this code is in. I’d post the full script but this “instance” variable is only used in these lines, so I don’t figure the rest is necessary. The JS code is calling “instance” a variable (right…?) but I don’t know what to call it in C#.

Any input is appreciated

It seems like you are using a singleton pattern. You can use the same name for the variable. Normally you use singleton variables to avoid having multiple instance of a class. For example EasyObjectPoolController could instance an instance of EasyObjectPool, only if the static varibale EasyObjectPool.instance is null.

For more about singleton pattern this is the wikipedia article, its a basic start. Hope it helps!

public class EasyObjectPool
{
    static EasyObjectPool instance;

    void Start ()
    {
        instance = this;
    }
}