MyEnum.Item.ToString(); nameof(MyEnum.Item);
Which style is preferred? Is there any practical difference between the two?
.ToString() is evaluated at runtime and can be called with your own format.
.ToString()
nameof() is evaluated at compile-time and will inject a string literal that will never change.
nameof()