TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Santhosh Subramaniam
NA
226
108.8k
How to convert array values to class objects in c#?
Feb 7 2020 5:12 AM
Hi,
I have a string value with comma separator,
string currency = "EUR:100;INR:500;CZK:500";
var _currency= currency.split(':');
now i get value in array like
EUR:100
INR:500
CZK:500 in _currency variable.
now how to push this array values to my class
class CurrencyValue
{
public string Currency {get;set;}
public int Amount{get;set;}
}
that is EUR to Currency and 100 to Amount?
Reply
Answers (
4
)
What is difference between hash-table and dictionary in c#
Enabling Editing on View Page with their static contents