c# - Method chains with nameof operator -


if nameof(instance.someproperty), evaluates "someproperty".

is there way can entire method chain "instance.someproperty"?

i know nameof(instance) + "." + nameof(instance.someproperty), there better way that's more maintainable?

is there way can entire method chain "instance.someproperty"?

nope. can, however, similar other solution:

$"{nameof(instance)}.{nameof(instance.someproperty)}" 

you can try here.


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

C# MVC AngularJS -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -