Exposing custom classes in C#

In Javascript you can write a public class inside a script, create a variable of that type, and see the properties of the class in the Inspector. So if I write:

public class ColorInfo
{
	public var color : Color;
	public var colorName : String;
}

public var color : ColorInfo;

the variable color will show up in Inspector:

The same doesn’t seem to be true of C#. Is there any way to do this in C#?

Need to add the System.Serializable attribute to it.

Hi Maethor
Daniel said but I wrote

[System.Serializable]
public class ColorInfo
{
	public Color color;
	public string colorName;
}

public class BaloonTest : MonoBehaviour {
	public ColorInfo color 
}

Brilliant guys, thanks!