Jump to content
  • Advertisement
Sign in to follow this  
themagicalrock

C# Methods help

This topic is 3786 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Alright, I dont normally come on forums for help like this, I either try to find it in a book, or find it online. Unfortunatly, when i search google, I never find a sufficient deffinition or example. The books really havent been able to explain the concept of methods to me. May I please have some help learning what a method is or does?

Share this post


Link to post
Share on other sites
Advertisement
A method is a snippet of code. You invoke methods, which then begins executing the code in sequence with the specified parameters (if any) and returns a value (if any). Executing a program does the same thing, only it invokes a special method ("Main" in C#) which in turn will usually invoke others and so on.

Share this post


Link to post
Share on other sites
I just typed "C# Methods" into Google and this was the first hit - it seems to explain Methods pretty well.

If you still don't understand them after reading the above let me know and I'll try explaining it.

James

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!