mardi 21 juin 2016

Should I provide a method with a member name with nameof, or should I depend on CallerMemberName to do it for me

How is CallerMemberName implemented?

I get what it does - it allows us to keep magic strings out of our code - but should it be used over nameof and what is more performant?

Whats the difference/how does CallerMemberName exactly work?





Aucun commentaire:

Enregistrer un commentaire