public VMEODIngredientCard(string code) { byte bT, bS; if (!byte.TryParse(code.Substring(0,1), out bT) || !byte.TryParse(code.Substring(1, 1), out bS)) return; Type = (VMEODIngredientType)bT; Size = (VMEODIngredientSize)bS; }
public VMEODIngredientCard(string code) { if (!byte.TryParse(code.Substring(0, 1), out var bT) || !byte.TryParse(code.Substring(1, 1), out var bS)) { return; } Type = (VMEODIngredientType)bT; Size = (VMEODIngredientSize)bS; }
public VMEODIngredientCard(VMEODIngredientType type, VMEODIngredientSize size) { Type = type; Size = size; }