コード例 #1
0
 internal static void AddConverter()
 {
     // TODO: FromObject with Dates has different behavior
     // in Java version, which has to be retained until
     // the next major version for backward compatibility.
     // However, since ToObject is new, we can convert
     // to Date in the .NET and Java versions
     if (PropertyMap.DateTimeCompatHack)
     {
         CBORObject.AddConverter(typeof(DateTime), new CBORTag0());
     }
 }
コード例 #2
0
ファイル: CBORTag37.cs プロジェクト: ulfendk/CBOR
 internal static void AddConverter()
 {
     CBORObject.AddConverter(typeof(Guid), new CBORTag37());
 }
コード例 #3
0
 internal static void AddConverter()
 {
     CBORObject.AddConverter(typeof(Uri), new CBORTag32());
 }
コード例 #4
0
 internal static void AddConverter()
 {
     CBORObject.AddConverter(typeof(DateTime), new CBORTag0());
 }