Ngen or compile to native code is better
- by Raghav55
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";
}
}