static void Main(string[] args) { string file = "STGFEWR" var reesult = Calculate_Retention_Time(file); } public static double Calculate_Retention_Time(string sequence) { unsafe { SSRCalc.Class1 c = new SSRCalc.Class1(); char* p = (char*)System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(sequence).ToPointer(); double hydrophobicity_factor = c.TSUM3((sbyte*)p); return hydrophobicity_factor; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)