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