public static FromFormat ( this format ) : string | ||
format | this | |
return | string |
public static string FromFormat(this Format format)
{
var formatStr = format.ToString().ToLower();
if (format == Format.ProtoBuf || format == Format.MsgPack)
return "x-" + formatStr;
return formatStr;
}