Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@toxn12
Created April 12, 2017 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toxn12/a3da903dc8e829873aba16f764c27d68 to your computer and use it in GitHub Desktop.
Save toxn12/a3da903dc8e829873aba16f764c27d68 to your computer and use it in GitHub Desktop.
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