Beispiel #1
0
        /// <summary>
        /// Validate long visit.
        /// </summary>
        /// <param name="item"></param>
        public void Visit(LongDataItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            AB_RootDataTag tag = RetrieveTag(item);

            ValidateAreEqual(GetData(tag.Value, value => int.Parse(value, CultureInfo.InvariantCulture)), item.Value);
        }
Beispiel #2
0
 /// <summary>
 /// Visit long item.
 /// </summary>
 /// <param name="item"></param>
 public void Visit(LongDataItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     byte[] values = GetItemValue(item);
     item.Value =
         ParserHelper.ConvertSegmentsToArray(
             ParserHelper.SegmentArray(values, 4, true),
             (segment => BitConverter.ToInt32(segment, 0)));
     Context.DataItems.Add(item);
 }