I am building a class and in the interface for my class(es) I have a property declared
object MyObject { get; set; }
What I want to do is force whatever is stored in MyObject to be serializable. Is there a good way to do this?
Normally, I'd use where : ISerializable, but for serialization you use an attribute, not inheritance, or at least that is my assumption.