Exemplo n.º 1
0
 protected override object ImportFromString(ImportContext context, JsonReader reader)
 {
     object obj2;
     try
     {
         obj2 = Convert.FromBase64String(reader.ReadString());
     }
     catch (FormatException exception)
     {
         throw new JsonException("Error converting JSON String containing base64-encode data to " + base.OutputType.FullName + ".", exception);
     }
     return obj2;
 }