Пример #1
0
        public static FloatRegisterArray Empty()
        {
            var floatRegisterArray = new FloatRegisterArray()
            {
                floatRegisters = new List <FloatRegister>()
            };

            return(floatRegisterArray);
        }
Пример #2
0
        public static FloatRegisterArray Parse(SqlString stringToParse)
        {
            if (stringToParse.IsNull)
            {
                return(Null);
            }

            var parsedFloatRegisterArray = new FloatRegisterArray()
            {
                floatRegisters = new List <FloatRegister>()
            };

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

            for (var i = 0; parsedString.Length > i; i++)
            {
                parsedFloatRegisterArray.FloatRegisters.Add(FloatRegister.Parse(parsedString[i]));
            }

            return(parsedFloatRegisterArray);
        }