Hello, I'm considering serialization as a means of creating a simple database for an application. I'm wondering if I'm going to run into any problems trying to serialize a list of a record-style struct comprised of simple data types, like strings and int, maybe a a DateTime or two.

so.. I have something like:

struct foo{
string x, y;
int z;
DateTime theTime;
}

List<foo> fooList;//<-- need to serialize

Also, is there any way to know how many foos are serialized to a file?

Its how ever you program it. Most companies will write there own serialization engine. Im not an expert in the area, but as far as I understand it there is no standard way of "serialzing" an object, because the point of serializing is to make the data available only to you so that no outside sources can read it.

>I'm considering serialization as a means of creating a simple database for an application.

Please read Serialization wiki.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.