Was macht MethodImplOptions.Synchronized?

Was bedeutet MethodImplOptions.Synchronized tun?

Ist der code unten

[MethodImpl(MethodImplOptions.Synchronized)]
public void Method()
{
    MethodImpl();
}

entspricht

public void Method()
{
    lock(this)
    {
        MethodImpl();
    }
}

InformationsquelleAutor der Frage Amitabh | 2010-02-08

Schreibe einen Kommentar