You could use the LastIndexOf method of the string to find the position of the last "-" and then use the substring method to get the string from the last index to the end of the string.. here is an example.
string test = T123-ABC-DEF-GHI-JKL-CC;
int position = test .LastIndexOf( "-" );string temp = test .Substring( position ); // you may have to say position + 1 here not sure.
int position = test .LastIndexOf( "-" );string temp = test .Substring( position ); // you may have to say position + 1 here not sure.
string temp = test .Substring( position ); // you may have to say position + 1 here not sure.