Type of methods in C# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Type of methods in C#

Hi everybody. I'm very beginner in programing. My question is: Let's say we defined a char variable. char c = '8'; There are some methods appear when we write char. e.g. char.IsNumber(c); And there are some other methods when we write c. e.g. c.Equals(); What i'm wondering is the difference between these methods. I mean what is that i'm using when i write char., and when i write c?

26th May 2020, 9:42 AM
Muhammed Yunus TUNCA
Muhammed Yunus TUNCA - avatar
2 Answers
+ 1
Thanks a lot. So can we say that, the methods like string.Compare() string.Format() are static methods. While the methods like str. CopyTo() str.IndexOf() are instance methods?
26th May 2020, 8:11 PM
Muhammed Yunus TUNCA
Muhammed Yunus TUNCA - avatar
+ 1
Thank you. 😊
26th May 2020, 9:29 PM
Muhammed Yunus TUNCA
Muhammed Yunus TUNCA - avatar