public static ExeSignature GetExeSignature(Stream stream) { var crc = CalculateSignature(stream); if (CRCs.ContainsKey(crc)) { return((ExeSignature)crc); } else { return(ExeSignature.Unknown); } }
public static string GetSignature(Stream stream) { var crc = CalculateSignature(stream); if (CRCs.ContainsKey(crc)) { return(CRCs[crc] + " (0x" + crc.ToString("X5") + ")"); } else { return("Unknown (0x" + crc.ToString("X5") + ")"); } }