public void Set(DE48_CustomerDataType type, string value) { if (value != null) { Fields[type] = value; } }
public string Get(DE48_CustomerDataType type) { if (Fields.ContainsKey(type)) { return(Fields[type]); } return(null); }
public DE48_8_CustomerData FromByteArray(byte[] buffer) { StringParser sp = new StringParser(buffer); fieldCount = sp.ReadInt(2); for (int i = 0; i < fieldCount; i++) { //DE48_CustomerDataType type = sp.ReadStringConstant<DE48_CustomerDataType>(1); DE48_CustomerDataType type = EnumConverter.FromMapping <DE48_CustomerDataType>(Target.NWS, sp.ReadString(1)); string value = sp.ReadToChar('\\'); Fields[type] = value; } return(this); }