SyntaxFix
Write A Post
Hire A Developer
Questions
In my case, my class had the [Serializable] attribute.
[Serializable]
You are required to have a constructor that takes no parameters if your class is [Serializable]