private byte GetRobotRecipe(ELargeBoxType largeBoxType) { switch (largeBoxType) { case ELargeBoxType.A : return 1; case ELargeBoxType.B: return 2; default : return 0; } }
public void Parsing(System.Xml.Linq.XElement xml) { if (xml.Element("BoxType") != null) BoxType = (ELargeBoxType)Enum.Parse(typeof(ELargeBoxType), xml.Element("BoxType").Value); }