Solved the problem, it was necessary to explicitly indicate on which instance we are calling Foreach.
foreach (var input in LetterManager.Instance.inputFieldsList)