See http://blogs.msdn.com/b/shawnhar/archive/2008/08/12/everything-you-ever-wanted-to-know-about-intermediateserializer.aspx - Everything you ever wanted to know about IntermediateSerializer.
That's an optimization applied to certain types of arrays.
Thank you, excactly the information I needed, the built in serializer isn't very well documented.
Now for example I'm deserializing class something like this:
public class SomeDataList
{
[ContentSerializer]
private SomeData[] data;
// public properties and other stuff.
public SomeDataList()
{}
public SomeData GetSomeData(int index)
{
// return stuff.
}
}
If I understood correctly the serializer requires parameterless constructor. Can I just mark this constructor private to only ever create instances of the class during content loading?
Also just to clarify I am correct on this right?
// Both reference the same object.
SomeDataList listFirst = Content.Load<SomeDataList>("ListOne");
SomeDataList listSecond = Content.Load<SomeDataList>("ListOne");
// Two different objects.
SomeDataList listFirst = Content.Load<SomeDataList>("ListOne");
SomeDataList listSecond = Content.Load<SomeDataList>("ListTwo");
Thanks for the help again. :>