I need to use a method which accepts two arguments Model type and Stream Type.
public static void Write(Stream stream, Model model);
Firstly i want to create a variable of type stream and then capture what ever is written to the stream in a string and then store in database. I find that Stream class is a abstract class not sure how to override it.
Can any one please suggest ?
You could use some of the derived classes such as MemoryStream: