In .NET, you should not initialize any out
parameter (as opposed to ref
parameters), since this is the job of the called method for this.
eg.
NSError err; // unitialized UIImage img = ...; img.AsPNG ().Save (url, true, our err); if (err != null && err.Code != 0) { // error handling }
source share