private static int FindEOL( string _Source, int _StartIndex ) { int MatchIndex = _Source.IndexOf( '\n', _StartIndex ); return MatchIndex != -1 ? MatchIndex : _Source.Length; // EOF? }