How can you add a list to an element (C#)?

Inside the inspector I am looking a way where you can add multiple variables for example like;

Script C# Star System Setup
Star System
Size 2
Element 0
Name - Mercury
Type of Celestial Object - Planet
Data Measured in Km And In Sec - True
Diameter - 4878,00
Rotation Speed - 10,83
Orbiting Speed - 172404,00
Orbiting Distance - 47,89
Element 1
Name - Venus
Type of Celestial Object - Planet
Data Measured in Km And In Sec - True
Diameter –
Rotation Speed –
Orbiting Speed –
Orbiting Distance –

etc

I found one that works but its Java, which is found here. I need in C#. I have idea how to translate it, I tried it.

Been searching since February this year. So it’s time I ask the question myself.

With many thanks, David.

You just have to serialize the Class you want to show up like this in the inspector.

This is how:

[System.Serializable]
public class MyClass
{
	public string name;
	public int    id;
	public GameObject go;
}

public MyClass[] myClassTypeList;