コード例 #1
0
 /// <summary>
 /// Format variant as string
 /// </summary>
 /// <param name="encoder"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public static VariantValue Encode(this IVariantEncoder encoder, Variant value)
 {
     return(encoder.Encode(value, out var tmp));
 }
コード例 #2
0
 /// <summary>
 /// Format variant as string
 /// </summary>
 /// <param name="encoder"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public static JToken Encode(this IVariantEncoder encoder, Variant value) =>
 encoder.Encode(value, out var tmp);