Convert a string to its respective Enum member

/ Published in: C#
Save to your folder(s)

This snippet accepts a string which is assumed to be the string version of one of the members and returns an enum object with the respective member selected.*

*Thanks to user: mcbutterbuns for improving upon my version of this snippet

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.