I have an existing enum
public enum BalanceType // existing enum
{
Available,
Phone,
Commissary,
Account,
Reserve,
Encumber,
Debt,
Held,
}
Now I want to create a new enum from it. The new one only contains two fields.
public class IvrBalanceInfo
{
public decimal Amount { get; set; }
public IvrBalanceType Type { get; set; }
public IvrBalanceInfo(BalanceInfo info, BalanceType type)
{
Amount = info.Amount;
//How to create the enum IvrBalanceType?
}
public enum IvrBalanceType // new enum
{
Available,
Phone,
}
}
My question is how to map it quickly? I mean to convert the old one to new one. The old one is from the third party. There are too much elements. I only need two.