Example #1
0
        public static ROCPlusHistoryPointArray Empty()
        {
            var rocPlusHistoryPointArray = new ROCPlusHistoryPointArray()
            {
                historyPoints = new List <byte>()
            };

            return(rocPlusHistoryPointArray);
        }
Example #2
0
        public static ROCPlusHistoryPointArray Parse(SqlString stringToParse)
        {
            if (stringToParse.IsNull)
            {
                return(Null);
            }

            var parsedROCPlusHistoryPointArray = new ROCPlusHistoryPointArray();

            parsedROCPlusHistoryPointArray.historyPoints = new List <byte>();
            var parsedString = stringToParse.Value.Split("|".ToCharArray());

            for (var i = 0; parsedString.Length > i; i++)
            {
                parsedROCPlusHistoryPointArray.HistoryPoints.Add(byte.Parse(parsedString[i]));
            }

            return(parsedROCPlusHistoryPointArray);
        }