convert string to existing enum c# code example Example: string to enum c# Enum.TryParse("Active", out StatusEnum myStatus);