The source code to demonstrate the unary plus (+) operator with TimeSpan structure is given below. The given program is compiled and executed successfully.
using System;
class TimeSpanDemo
{
//Entry point of Program
static public void Main()
{
TimeSpan timeInterval = new TimeSpan(4, 10, 15);
Console.WriteLine(+timeInterval);
}
}
Program:
The source code to demonstrate the unary plus (+) operator with TimeSpan structure is given below. The given program is compiled and executed successfully.
Output: