using System;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
namespace CloseChrome
{
class Program
{
static void Main(string[] args)
{
Task.Run(async () =>
{
while (true)
{
Process.GetProcessesByName("chrome")
.ToList().ForEach(p => p.Kill());
await Task.Delay(new TimeSpan(0, 0, 10));
}
});
Console.ReadLine();
}
}
}
if(DateTime.TryParseExact("31.12.2001", "dd.MM.yyyy",
System.Globalization.CultureInfo.InvariantCulture,
System.Globalization.DateTimeStyles.None, out DateTime dt)){
Line.Date = dt;
}
class Line{
{
private DateTime date;
public DateTime Date{get;set;}
}