Search code examples
c#bond

Representing C# TimeSpan in Bond


Is there an equivalent of C#'s TimeSpan in the Bond type system? If not, how can I interoperate between TimeSpan and a field in a Bond struct?


Solution

  • There is no builtin type for C#'s TimeSpan, but you can use custom type mapping to achieve the same result. See this official example for DateTime.