public static int ReverseIndexOf(string s, char c)
{
Char[] tempChar = s.ToCharArray();
Array.Reverse(tempChar);
return (new string(tempChar).IndexOf(c) == -1 ? s.Length : s.Length - new string(tempChar).IndexOf(c));
}
<summary> restore missing Cr for comments background: BE will lost Cr when save and get comments. GUI control show multi-line content must use CrLf. Phase 3 by suchun </summary> <param name="OrgStr"></param> <returns></returns> OrgStr)
{ .IsNullOrEmpty(OrgStr))
{ );
} else .Empty;