C # to IL 4 Keywords and Operators (keywords and operators)

Source: Internet
Author: User

Code that's placed after the return statement never gets executed. In the first program
Given below, you'll notice that there are a WriteLine function call in C # but isn't visible in
Our IL code. This is because the compiler are aware that any statements after return is not
executed and hence, it serves no purpose to convert it into IL.

The compiler does not waste time compiling code that would never get executed, instead
Generates a warning when it encounters such a situation.

If A constructor is isn't present in the source code, a constructor with no parameters gets
Generated. If A constructor is present, and the one with no parameters are eliminated from the
Code.
The base class constructor always gets called without any parameters and it gets called
First. The above IL code proves this fact.

We may write a namespace within a namespace and the compiler converts it all into one
namespace in the IL file. Thus, the namespaces Vijay and Mukhi in the C # file get
Merged into a single namespace Vijay.mukhi in the IL file.

C # to IL 4 Keywords and Operators (keywords and operators)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.