C#でstringの中の最後尾の文字列を調べる

EndsWith()を使う

if(!str.EndsWith("\r\n")) str+="\r\n";