C# 来自.NET的ling也是。 One thread of execution Thread pool with round-robin thread assignment Every externally created object is on it

C# 来自.NET的ling也是。 One thread of execution Thread pool with round-robin thread assignment Every externally created object is on it,c#,vb6,.net-2.0,integration,legacy,C#,Vb6,.net 2.0,Integration,Legacy,来自.NET的ling也是。 One thread of execution Thread pool with round-robin thread assignment Every externally created object is on its own thread [ThreadStatic] public static LegacyComObject myObject; void DoWork() { if (myObject == null) {

来自.NET的ling也是。
One thread of execution 
Thread pool with round-robin thread assignment 
Every externally created object is on its own thread 
[ThreadStatic]
public static LegacyComObject myObject;
void DoWork()
{ 
    if (myObject == null)
    { 
        // slow intialisation process
        myObject = New ...
    }

    // now do the work against myObject
    myObject.DoGreatStuff();
}