C# C# Streams and Data Processing Parsing Data Working with Enums

Shadab Khan
Shadab Khan
4,985 Points

Regarding Enums

Hi , I completely understand how the TryParse method works in context of integers, datetime etc. but when it comes to enum.TryParse() method, I am unable to conceptualise how that works. Can someone please explain me with some clear explanations ? Also, is enum a reference type of value type ?

1 Answer

Steven Parker
Steven Parker
163,772 Points

An "enum" is a value type, and I found some MDN pages with details and examples you may find helpful: Enum.TryParse, enum, and Enumeration Types.