0
What is the difference functions and methods in C#?
5 Answers
+ 1
It is the same. Except you mean the delegate Func!
+ 1
I believe in c# there are only methods, which are accessible through dot notation of it's object. Meaning that methods are dependents of their object, in order to perform their actions.
On the other hand, in JavaScript, which have functions and methods, functions are independent and does not need an object to perform its actions.
0
they are same
0
they are same and both can return values
- 1
in vb they say fuction return a value and method doesn't return the value