Methods in c#
What is method in c# ?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anupam SinghRank #643 · 3.7K reputationPosted Jul 20, 2014, 11:12 PM EDT
Not only in C#, Methods are there in every OOP language. I would suggest you to study OOPS first and then you can study Methods here : http://msdn.microsoft.com/en-IN/library/ms173114.aspx.
You can get a brief idea about OOPS here : http://en.wikipedia.org/wiki/Object-oriented_programming.
All the best.
VulpesRank #55 · 29.2K reputationPosted Jul 21, 2014, 1:50 AM EDT
Some languages (such as C++) allow you to create 'stand alone' (or global) functions as well as methods. However, this isn't possible in C# - all functions must be members of a class or struct.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 21, 2014, 3:19 AM EDT
Method is code block that contains series of Statement. It combines related code together and makes program easier.
Please refer
http://www.csharp-station.com/Tutorial/CSharp/lesson05
http://www.c-sharpcorner.com/UploadFile/myoussef/CSharpMethodsP_111152005003025AM/CSharpMethodsP_1.aspx
hope this will help you.