XMAN
XMAN

Reputation: 173

Silly c# array question

Element 0 value:

TimeEntries[0] = "False,S,16:00,21:00";

Element 0 is assigned to:

timeLine = USER.TimeEntries[i];

I want to perform a .Split() on timeLine but it must be a string. What's the easiest way to go about this?

Thanks

Upvotes: 0

Views: 125

Answers (1)

ChaosPandion
ChaosPandion

Reputation: 78292

Assuming TimeEntries is an object array you can do this:

var pieces = ((string)TimeEntries[0]).Split(',');

Upvotes: 2

Related Questions