I want to serialize a pretty ordinary class, but the catch is it\'s nested in a static class like this:
public static class StaticClass { [Serializable]
Either make the class non nested or consider using the DataContractSerializer instead.