Link to home
Start Free TrialLog in
Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates

asked on

What is the advantage and disadvantage of declaring every class method as static in c#

Hi Experts,

Can you please let me know what is the advantage and disadvantage of declaring every class methods as static.

Examples:

public static string GetTitle()
{
}

Open in new window


Please suggest the best approach!!
Avatar of Bill Nolan
Bill Nolan
Flag of United States of America image

What you ask is essentially the same thing as "why use a static class?".  Read this:

http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx
Avatar of tia_kamakshi

ASKER

Can you please give me brief points for advantage and disadvantage like can there can be memory issue if I am going to static class.
ASKER CERTIFIED SOLUTION
Avatar of brutaldev
brutaldev
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial