Problem
I am writing an object in C# to mimic jQuery’s various functions. That is, calling the constructor is akin to calling the $()
function of jQuery. For example,
var a = new JQuery("div").eq(0);
Assert.AreEqual("$("div"").eq(0)"", a.ToString())
Solution