Beispiel #1
0
        private cTSOTopicUpdateMessage SerializeUpdateField(object value, uint[] path)
        {
            try
            {
                var clsid = Serializer.GetClsid(value);
                if (!clsid.HasValue)
                {
                    throw new Exception("Unable to serialize value with type: " + value.GetType());
                }

                var update = new cTSOTopicUpdateMessage();
                update.DotPath = path;
                update.Value   = value;
                return(update);
            }
            catch (Exception ex)
            {
                LOG.Error(ex);
                throw ex;
            }
        }