I've created a static function inside of a class, and then tried to create an array of instances of said class inside the static function and during run time a NullReferenceException is thrown. I am not a seasoned C# coder, so I'm sure I'm missing something obvious. Please take a look at the code below
Code:
public class X
{
    public int id = 1;
    public static void run()
    {
        X[] newX = new X[2];
        newX[0].id.ToString();
    }
}
// Note: This code is provided simply as an example, I realize it has no significant purpose
Then when run() is executed the exception is thrown. I'm on a tight deadline so any help would be greatly appreciated. I'll find an alternate way to accomplish what I want for now, but I'd really like to know what I was doing wrong here.

Thankyou