Hi @Lloyd Sheen ,
(string) is converted last.
So string[] ss = (string)value.Split("|");
, What actually happens is the following steps.
string[] a = value.Split("|");
string[] ss = (string)a;
It is recommended to use your step-by-step code, or try string[] ss = value.ToString().Split("|");
.
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.