public static void WriteData(this XiDataList dataList,
                              WriteData dataObjectToWrite)
 {
     dataList.WriteData(new List <WriteValue> {
         dataObjectToWrite.ToWriteValue()
     });
 }
        public static void WriteData(this XiDataList dataList,
                                     WriteData dataObjectToWrite,
                                     OnWriteDataComplete onComplete,
                                     object asyncState)
        {
            var xiWriteValue = dataObjectToWrite.ToWriteValue();

            dataList.WriteData(new List <WriteValue> {
                xiWriteValue
            }, onComplete, asyncState);
        }