forum

Home / DeveloperSection / Forums / Using this in parameters of static methods in static class?

Using this in parameters of static methods in static class?

Anonymous User 1577 27-Jan-2014

Why should I use 'this' in static functions of static classes to objects in parameter? I mean is the real difference between using those 2 methods?

public static class Extensions
{
    public static string AsJson(this object obj)
    public static string AsJson2(object obj)
}

c# c# 
Updated on 28-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By