I would like to assign user defined object to Process.StartInfo.Arguments in my parent process, So as to retrieve same object in my child process.
How can I do it.. please help
I would like to assign user defined object to Process.StartInfo.Arguments in my parent process, So as to retrieve same object in my child process.
How can I do it.. please help
You can serialize your object, either using XmlSerializer or BinaryFormatter and then deserialize it in the child process.
When using the latter, you have to add base64 encoding to get a string.
Please note that, starting from Windows 7, the maximum length for a command line string is 32768, so you should use another remoting technology for larger objects.