Hi,

I am new to C# and the group! I am trying to use Serialization code to write a binary file for storing, but it is giving RunTime SerializationException: that some of the classes in an assembly are not marked as serializable. I am working with a code base for a project and have access to its code, so changed a number of classes by introducing [serializable] attribute. Now I am getting the same error for System.Timers.Timer, is that possible to mark it serializable, tried searching to get something but couldn't. Thanks for any help from the community!

Best,

Umar