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]
As a pragmatic workaround - don't mark the nesting type static:
static
public class ContainerClass { private ContainerClass() { // hide the public ctor throw new InvalidOperationException("no you don't"); } public class SomeType { ... } }