protected void SetListValue <T>(ref MzTabMultipleSet <T> container, int index1, int index2, T value) { if (container == null) { container = new MzTabMultipleSet <T>(); } container.SetValue(index1, index2, value); }
protected string GetListValue <T>(MzTabMultipleSet <T> list, int index1, int index2) { if (list == null) { return(MzTab.NullFieldText); } T value; if (!list.TryGetValue(index1, index2, out value)) { return(MzTab.NullFieldText); } if (value == null) { return(MzTab.NullFieldText); } return(value.ToString()); }