Setting the lifespan of an object so it closes 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".