c# how to terminate console application code example Example: c# how to terminate console application Click to copySystem.Envrionment.Exit(0); //or Envrionment.Exit(0);