C# program to demonstrate the use of Zero property of TimeSpan structure

In this tutorial, we will learn C# program to demonstrate the use of Zero property of TimeSpan structure

C# program to demonstrate the use of Zero property of TimeSpan structure

C# program to demonstrate the use of Zero property of TimeSpan structure

using System;

class TimeSpanDemo
{
    //Entry point of Program
    static public void Main()
    {
        TimeSpan zero;

        zero = TimeSpan.Zero;

        Console.WriteLine("Zero Time Span: " + zero);
    }
}
Zero Time Span: 00:00:00
Press any key to continue . . .

Final Words

I hope this article helps you to know the C# program to demonstrate the use of Zero property of TimeSpan structure. If you encounter any issues let me know via the comment section

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Deekshi. Here, I post about programming to help developers.

Share on:

Leave a Comment