To check if something is able to be serialized, you can go to the documentation and see if it has a <Serialiable> attribute on it. Just to be clear, in that example, they are serializing an array of objects in example, not an array of classes. Maybe I'm not completely understanding your question, but if you take that example and replace ClassToSerialize with String, you should get your desired effect.