public static string GetContentTypeBuf(this DigitalSignViewer source, byte[] buf)
        {
            enumContentTypeEx docType;
            string            pDocExt = null;

            source.GetContentTypeBuf(buf, out docType, out pDocExt);
            if (pDocExt.IsNullOrWhiteSpace())
            {
                throw new InvalidOperationException("Non รจ stato possibile identificare il contenuto.");
            }
            return(pDocExt);
        }
 public static string GetContentTypeBuf(this DigitalSignViewer source, IContent contentInfo)
 {
     return(source.GetContentTypeBuf(contentInfo.Content));
 }