S
shapper
Hello,
I have a class, named MyClass, with 2 properties: Name and Text.
And I have a string as follows: "dog, new york, france , car"
Note that the words are separated by commas and that sometimes there
are spaces before and after a comma.
I want to get all words, i.e. "dog", "new york", "france" and "car",
and add them to a generic.list(of MyClass) assigning them to property
"Text".
How can I do this?
Thanks,
Miguel
I have a class, named MyClass, with 2 properties: Name and Text.
And I have a string as follows: "dog, new york, france , car"
Note that the words are separated by commas and that sometimes there
are spaces before and after a comma.
I want to get all words, i.e. "dog", "new york", "france" and "car",
and add them to a generic.list(of MyClass) assigning them to property
"Text".
How can I do this?
Thanks,
Miguel