internal static string GetArrayName(string fieldName, int index) { return fieldName.Replace("[]", "[" + index + "]"); }
public string AddMsRun(string filePath) { if (MsRunLocations == null) { MsRunLocations = new List <string>(); } MsRunLocations.Add(filePath); return(MzTab.GetArrayName(Fields.MsRun, MsRunLocations.Count - 1 + MzTab.IndexBased)); }