Created
April 12, 2017 13:58
-
-
Save toxn12/a3da903dc8e829873aba16f764c27d68 to your computer and use it in GitHub Desktop.
TimeSpan-sample01.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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