I have a enum that has multiple values (I have kept only one below inside the enum). I am being passed this string "Online System" from the UI. Is there a way I can make use of this enum to do the condition rather than hardcoding like below.
if( types.type == "Online System" )
  public enum Type
        {
            [EnumMember]
            Windows
            ,[EnumMember]
            OnlineSystem
        }
Update
Also, when I number the enum values to Windows = 1, OnlineSystem = 2, will there be any problem? This code is already there, but I am gona number like this, will this create any side effect for codes that might use this already without numbering?

types.type? Its the enum or string?OnlineSystem.