Hello,
Welcome to Microsoft Q&A!
I more recommend you use the Name property
.
And according to the Doc: Boxing and Unboxing
It is best to avoid using value types in situations where they must be boxed a high number of times. Boxing and unboxing are computationally expensive processes.
Boxing and unboxing the value will have a significant overhead.
Thank you.
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.