What does MethodImplOptions.Synchronized
do?
Is the code below
[MethodImpl(MethodImplOptions.Synchronized)]
public void Method()
{
MethodImpl();
}
equivalent to
public void Method()
{
lock(this)
{
MethodImpl();
}
}
See Question&Answers more detail:os