Want to build the ChatGPT based Apps? Start here
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Chris Anderson
2.1k
93
6.6k
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