G
Guest
Is there a more effcient way of removing the spaces from the names for a
Enumerated value that has several values when you split it)???
When you do a toString it puts ,<SPACE> between the entries
eg. category.ToString() = "cat1, cat2, cat3"
What I am currently doing..(and I use this a lot..)
this.categoriesEntry.Items.AddRange(
category.ToString().Replace(" ",String.Empty).Split(new char[]{','})
);
Enumerated value that has several values when you split it)???
When you do a toString it puts ,<SPACE> between the entries
eg. category.ToString() = "cat1, cat2, cat3"
What I am currently doing..(and I use this a lot..)
this.categoriesEntry.Items.AddRange(
category.ToString().Replace(" ",String.Empty).Split(new char[]{','})
);