Это может быть что-то вроде этого.
using System;
using System.Collections.Generic;
public bool TryInsertAfter(List<string> fileLines, String searchAfterText, String insertAfterText)
{
var index = fileLines.IndexOf(searchAfterText);
if( index > -1 )
{
fileLines.Insert(++index, insertAfterText);
return true;
}
return false;
}
возможно, вставка с индексом отключена, поэтому проверьте ее