Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
TimeSpan-sample01.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace TimeSpanSample01
{
public class Program
{
public static void Main(string[] args)
{
List<TimeSpan> hoge = new List<TimeSpan>();
hoge.Add(new TimeSpan(10));
hoge.Add(new TimeSpan(10));
TimeSpan result = new TimeSpan(hoge.Sum(x => x.Ticks));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment