Users Pricing

forum

Home Forums Using this in parameters of static methods in static class? – MindStick

Using this in parameters of static methods in static class?

Anonymous User 1935 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)
}

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md