I like to create an extension method to Image.FromStream
Public Shared Function FromStream(ByVal stream As System.IO.Stream) As System.Drawing.Image
With possibility to cancel processing like
Public Shared Function FromStream(ByVal stream As System.IO.Stream, ByVal CloseTask As ManualResetEvent) As System.Drawing.Image
Is it possible?
No, you can only add extension methods which appear to add instance methods to a type – you can’t make it look like you’ve added new shared methods to a type.