struct MyParameters
{
public Bitmap resizedBitmap { get; set; }
public Bitmap originalBitmap { get; set; }
public int ratio {get; set;}
public bool setdata {get; set;}
}
Can i use struct to pass several images to a method instead of a class? Is there any performance issue ? i referred this SO answer.It mentions that use struct only if It has an instance size smaller than 16 bytes.
https://stackoverflow.com/a/85656/848968
Please advice