Setting the lifespan of a object so it cloess in a certain timespan C# code example
Example: c# timespan
TimeSpan interval = new TimeSpan();
Console.WriteLine(interval.Equals(TimeSpan.Zero)); // Displays "True".
TimeSpan interval = new TimeSpan();
Console.WriteLine(interval.Equals(TimeSpan.Zero)); // Displays "True".