This would be a pretty close equivalent:
struct Customer
{
public int Id { get; set; }
}
class Program
{
static void Main()
{
Thread thread = new Thread(new ThreadStart(ThreadProc));
thread.Start();
}
static void ThreadProc()
{
Customer customer = new Customer() { Id = 1 };
ShowCustomer(customer);
}
static void ShowCustomer(Customer customer)
{
Console.WriteLine("Id : {0}", customer.Id);
}
}
It's not a very .NET-ish way to do this though.