[Mono-devel-list] System.Threading.Thread.Name problem
Tom Shelton
tom at mtogden.com
Mon Dec 1 02:09:12 EST 2003
Hi,
I actually have 2 questions, but the main one is about the Name property of
the Thread class. According the documentation, this is a WriteOnce property.
Well, this code snipit compiles and runs just fine on Mono - but throws the
InvalidOperationException on .NET...
using System;
using System.Threading;
public class ThreadTest
{
public static void Main()
{
Thread t = new Thread(new ThreadStart(Func));
t.Name = "First";
t.Name = "Second";
}
private static void Func()
{
}
}
This is with 0.28...
Also, just wondering if anyone is planning on implementing the undocumented MS
C# __arglist? Very handy for calling vararg functions via P/Invoke...
Tom
More information about the Mono-devel-list
mailing list