using System;
using System.Diagnostics;
namespace csharp_station.howto
{
/// <summary>
/// Demonstrates how to start another program from C#
/// </summary>
class share
{
public int a;
public int b;
}
class ProcessStart
{
static void Main(string[] args)
{
share share1 = new share();
share1.a = 90;
share1.b = 100;
Process console36 = new Process();
console36.StartInfo.FileName = @"e:\\ConsoleApplication36.exe";
console36.Start();
}
}
}
现在我想在 ConsoleApplication35.exe 中创建的 ConsoleApplication36.exe 中使用对象 share1。我该怎么做?请给我发送 ConsoleApplication36.exe 的代码。