I recently wrote a code for copying a class with C5 library "IntervalHeap" but encountered an error message like this.
System.Runtime.Serialization.SerializationException: 'Type 'C5.IntervalHeap`1+Interval[[TransSys1.Node, TransSys1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'C5, Version=2.5.0.0, Culture=neutral, PublicKeyToken=282361b99ded7e8e' is not marked as serializable.'
I checked the source code in here but the IntervalHeap class is already labeled as [Serializable]
. I built the source code again but it still not working. I debugged my project with x64 platforms.
Can you let me know what are the potential reasons or how to solve it?