private getLastParameter ( string lookfor, string textContent ) : string | ||
lookfor | string | |
textContent | string | |
return | string |
private string getLastParameter(string lookfor, string textContent)
{
var last = textContent.LastIndexOf(lookfor);
if (last == -1)
last = 0;
else
last++;
return textContent
.Substring(last, textContent.Length - last).Trim(new char[] { ' ', '"' });
}