> I am a little confused on the sematics here. Is a C# "Function" simply a
> "Method" that returns a value?
A function is just a part of code that executes code and can return
something. A method is, in OOP, a function that is bound to a class. As
in C# there are no stand-alone functions, every function in C# is a method.
Best regards,
Michael
--
Michael Kremser
http://great.dynu.com/
There really is no difference. The distinction is that in C# a method
is attached to a class. Since it is an OO language, you can't have
functions, which stand alone (outside of classes).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"BillyTheKid" <n...@nospam.com> wrote in message
news:uX1WzpMm...@tk2msftngp13.phx.gbl...
Method is simply object-oriented terminology for a function or
subroutine that is scoped to a class.
--
mikeb
Yes, both funtions and procedures (as they are refered to in some structured
programming books) are methods. Don't get tangled with words.
Hope that helps,
-JG