Translated objective C block statements to C# equivalent