public static PARAM_FirstSeenTimestampUTC FromXmlNode(XmlNode node)
        {
            ArrayList           arrayList        = new ArrayList();
            XmlNamespaceManager namespaceManager = new XmlNamespaceManager(node.OwnerDocument.NameTable);

            namespaceManager.AddNamespace("", "http://www.llrp.org/ltk/schema/core/encoding/xml/1.0");
            namespaceManager.AddNamespace("llrp", "http://www.llrp.org/ltk/schema/core/encoding/xml/1.0");
            PARAM_FirstSeenTimestampUTC seenTimestampUtc = new PARAM_FirstSeenTimestampUTC();
            string nodeValue = XmlUtil.GetNodeValue(node, "Microseconds");

            seenTimestampUtc.Microseconds = (ulong)Util.ParseValueTypeFromString(nodeValue, "u64", "Datetime");
            return(seenTimestampUtc);
        }
        public static PARAM_FirstSeenTimestampUTC FromBitArray(
            ref BitArray bit_array,
            ref int cursor,
            int length)
        {
            if (cursor >= length)
            {
                return((PARAM_FirstSeenTimestampUTC)null);
            }
            int       num1      = cursor;
            int       num2      = length;
            ArrayList arrayList = new ArrayList();
            PARAM_FirstSeenTimestampUTC seenTimestampUtc = new PARAM_FirstSeenTimestampUTC();

            seenTimestampUtc.tvCoding = bit_array[cursor];
            int val;

            if (seenTimestampUtc.tvCoding)
            {
                ++cursor;
                val = (int)(ulong)Util.CalculateVal(ref bit_array, ref cursor, 7);
            }
            else
            {
                cursor += 6;
                val     = (int)(ulong)Util.CalculateVal(ref bit_array, ref cursor, 10);
                seenTimestampUtc.length = (ushort)Util.DetermineFieldLength(ref bit_array, ref cursor);
                num2 = num1 + (int)seenTimestampUtc.length * 8;
            }
            if (val != (int)seenTimestampUtc.TypeID)
            {
                cursor = num1;
                return((PARAM_FirstSeenTimestampUTC)null);
            }
            if (cursor > length || cursor > num2)
            {
                throw new Exception("Input data is not a complete LLRP message");
            }
            int    field_len = 64;
            object obj;

            Util.ConvertBitArrayToObj(ref bit_array, ref cursor, out obj, typeof(ulong), field_len);
            seenTimestampUtc.Microseconds = (ulong)obj;
            return(seenTimestampUtc);
        }