📅  最后修改于: 2022-03-11 14:49:15.339000             🧑  作者: Mango
public static bool IsBase64String(string base64)
{
Span buffer = new Span(new byte[base64.Length]);
return Convert.TryFromBase64String(base64, buffer , out int bytesParsed);
}