コード例 #1
0
        public object Read(ref byte[] bytes, ref int index)
        {
            if ((index & 1) != 0)
            {
                index++;
            }
            var propertyValue = new TType[ArraySize];

            for (var i = 0; i < ArraySize; i++)
            {
                propertyValue[i] = (TType)ElementType.Read(ref bytes, ref index);
            }
            return(propertyValue);
        }
コード例 #2
0
ファイル: PlcProperty.cs プロジェクト: DenisAloner/crane
 public void ReadProperty(ref byte[] bytes, ref int index, object value)
 {
     Setter((TClass)value, (byte[])PropertyType.Read(ref bytes, ref index));
 }