Is it possible to get a setter method name using the new nameof
operator?
public object Foo { get; set; }
public void Test()
{
var myMethod = GetType().GetMethod("set_Foo");
}
I guess GetType().GetMethod("set_" + nameof(Foo))
could work but is there something more straightforward?