📜  验证base64字符串c#代码示例

📅  最后修改于: 2022-03-11 14:49:15.339000             🧑  作者: Mango

代码示例1
public static bool IsBase64String(string base64)
{
   Span buffer = new Span(new byte[base64.Length]);
   return Convert.TryFromBase64String(base64, buffer , out int bytesParsed);
}