Esempio n. 1
0
        public static BooleanRegisterArray Empty()
        {
            var booleanRegisterArray = new BooleanRegisterArray()
            {
                booleanRegisters = new List <BooleanRegister>()
            };

            return(booleanRegisterArray);
        }
Esempio n. 2
0
        public static BooleanRegisterArray Parse(SqlString stringToParse)
        {
            if (stringToParse.IsNull)
            {
                return(Null);
            }

            var parsedBooleanRegisterArray = new BooleanRegisterArray()
            {
                booleanRegisters = new List <BooleanRegister>()
            };

            var parsedString = stringToParse.Value.Split("|".ToCharArray());

            for (var i = 0; parsedString.Length > i; i++)
            {
                parsedBooleanRegisterArray.BooleanRegisters.Add(BooleanRegister.Parse(parsedString[i]));
            }

            return(parsedBooleanRegisterArray);
        }