Get the name of the first argument in an extension method?
-
29-10-2019 - |
Question
string thing = "etc";
thing = thing.GetName();
//now thing == "thing"
Is this even possible?
public static string GetName(this object obj)
{
return ... POOF! //should == "thing"
}
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow