public static MODBUSMaster_LongRegisterArray Empty() { var longRegisterArray = new MODBUSMaster_LongRegisterArray() { longRegisters = new List <MODBUSMaster_LongRegister>() }; return(longRegisterArray); }
public static MODBUSMaster_LongRegisterArray Parse(SqlString stringToParse) { if (stringToParse.IsNull) { return(Null); } var parsedLongRegisterArray = new MODBUSMaster_LongRegisterArray() { longRegisters = new List <MODBUSMaster_LongRegister>() }; var parsedString = stringToParse.Value.Split("|".ToCharArray()); for (var i = 0; parsedString.Length > i; i++) { parsedLongRegisterArray.LongRegisters.Add(MODBUSMaster_LongRegister.Parse(parsedString[i])); } return(parsedLongRegisterArray); }