Answers

Question and Answer:

  Home  C# (Sharp) Programming Language

⟩ How do I port "synchronized" functions from Visual J++ to C#?

Original Visual J++ code: public synchronized void Run()

{

// function body

}

Ported C# code: class C

{

public void Run()

{

lock(this)

{

// function body

}

}

public static void Main() {}

}

 161 views

More Questions for you: