2016-09-14 26 views

回答

5

C#的TimeSpan沒有內置類型,但可以使用custom type mapping來實現相同的結果。看到這個官員example for DateTime

+2

我建議在Bond結構中使用'int64'字段來存儲'TimeSpan.Ticks'值,然後在轉換器中使用它。 – chwarr