I would like to separate the string "ICMS_MG-PR-RJ-RS-SC" and need to exclude the "ICMS_" add the other values excluding the "-" to the list of string.
List<string> states=new List<string>(); The "states" should contain the values as: MG,PR,RJ,RS,SC