コード例 #1
0
        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);
        }
コード例 #2
0
 public static string GetContentTypeBuf(this DigitalSignViewer source, IContent contentInfo)
 {
     return(source.GetContentTypeBuf(contentInfo.Content));
 }