This is an evolution of: C# image binary serialization
I have very simple class:
public class TheClass2
{
public object myImg;
public int myInt;
}
In order to serialize it I have to cast myImg from image to object
var ist = new TheClass2();
Image i = new Image();
ist.myImg= Convert.ChangeType(i, typeof(object));<-----this is not working
but ist.myImg is still an image.
Thanx for any help Patrick