Ngen or compile to native code is better

Posted by Raghav55 on Stack Overflow See other posts from Stack Overflow or by Raghav55
Published on 2011-11-23T17:42:08Z Indexed on 2011/11/23 17:50 UTC
Read the original article Hit count: 171

Filed under:

I want to know which is one better native code generated is NGen.exe is better or run time conversion of IL to native code by JIT ?

using System;

public class Vehicle
{
    public Vehicle()
    {
    }

    public string Name
    {
        get;
        set;
    }

    public string Model
    {
        get;
        set;
    }

}

class Program
{
    static void Main(string[] args)
    {
        Vehicle aVech = new Vehicle();
        aVech.Name = "BUS";
        aVech.Model = "1980";

    }
}

© Stack Overflow or respective owner

Related posts about c#