Use the endswith method of strings:
if (string.EndsWith("A") || string.EndsWith("B"))
{
//do stuff here
}
Heres the MSDN article explaining this method:
http://msdn.microsoft.com/en-us/library/system.string.endswith(v=vs.71).aspx
Use the endswith method of strings:
if (string.EndsWith("A") || string.EndsWith("B"))
{
//do stuff here
}
Heres the MSDN article explaining this method:
http://msdn.microsoft.com/en-us/library/system.string.endswith(v=vs.71).aspx