+ 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?
4 Respostas
+ 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?
+ 1
Thank you. 😊