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
Chris Anderson
NA
93
9.4k
Append string to int in datagridview column?
Mar 6 2021 3:15 PM
I want to add a string after the age declaration. Depending if it is a dog or a puppy I want to add either "year" or "month" after. Is this possible?
string
name;
int
age;
Animal cat =
new
Cat();
cat.Name = name;
cat.Age = age +
"months"
; // This I want to add a string after the int value
Petowner.Pets.Add(cat);
Excuse me for my drawing skills :)
Reply
Answers (
3
)
Can we get key by passing value from dictionary in c# . without loopin
Run Xaml on VMix