What does an if statement look like when it’s compiled into IL?
It’s a very simple construct in C#. Can sombody give me a more abstract definition of what it really is?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here are a few
ifstatements and how they translate to IL:One thing to note here: The IL instructions are always the “opposite”.
if (i > 0)translates to something that effectively means “ifi <= 0, then jump over the body of theifblock”.