Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
what is METHODS?
August 02, 2011
what is METHODS in .net framework? Please explain.
Posted Date: August 03, 2011 Points: 20
A method is a code block containing a series of statements. In C#, every executed instruction is done so in the context of a method.
Methods are declared within a class or struct by specifying the access level, the return value, the name of the method, and any method parameters. Method parameters are surrounded by parentheses, and separated by commas. Empty parentheses indicate that the method requires no parameters. This class contains three methods:
Ref - msdn
Mark As Answer
" if this post help you.
Posted Date: August 10, 2011 Points: 20
A method group is the name for a set of methods (that might be just one) - i.e. in theory the ToString method may have multiple overloads (plus any extension methods): ToString(), ToString(string format), etc - hence ToString by itself is a "method group".
It can usually convert a method group to a (typed) delegate by using overload resolution - but not to a string etc; it doesn't make sense.
Once you add brackets, again; overload resolution kicks in and you have unambiguously identified a method call.
Thanks & Regards,
Mark if the answer is true
Posted Date: August 16, 2011 Points: 20
Regards, Lakshmi Naraayanan.S
Posted Date: August 26, 2011 Points: 20
Example for mehtod: Main() method is the entry point for every c # application when your program is started.
Mehtods can be secured from invoking it from other program by making it private.
To post reply
Related Questions Related Questions
Secure web service methods!
what are methods of response object?
What are the various security methods which IIS Provides apart from .NET
What are the methods available to access the XML
StaticMethods And Public Methods
Difference between add and insert methods of a ListBox Control?
Latest Forum Questions From The Same Category
Window Service C#.net not working properly
C# Onvif IP Camera Viewer NuGet package
Land Registry Business Gateway Webservice - reference the returned XMLDocument
Technology to be used for Finance Application
problem instal net framwork 4
I am looking for Dotnet developer opening in Middle level company.
Validate the Grade in gridview in asp.net using C#
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend