• 0

[C#] Enumerator Question


Question

I'm trying to set up an enumerator as follows:

> I have a string that is set to: "jan;feb;mar;apr;jun;jul;aug;sep;oct;nov;dec;"

> I want the enumerator to covert the above string into an array containing the short month names, such as "jan", "feb", "mar", etc

I just can't figure out how to tell the Enumerator object that " ; " is the symbol that seperates each value in the list.

Can anyone tell me what i need to do to get the enumerator object to recognise " ; " as the item seperator.

Thanks.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.