Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="arg"></param>
        /// <param name="info"></param>
        private void BuildMessageProperty(object arg, PropertyInfo info)
        {
            var propInfo = new ObjectMessageProperty();

            propInfo.Add(info.Name, arg);

            var propValue = info.GetValue(arg);

            PropertyManager.Build(propValue, propInfo);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="arg"></param>
        /// <param name="info"></param>
        /// <param name="index"></param>
        private void BuildMessagePropertyWithIndex(object arg, PropertyInfo info, int index)
        {
            var propInfo = new ObjectMessageProperty();

            propInfo.AddToStartArgsIndex(index, propInfo);
            propInfo.Add(info.Name, arg);

            var propValue = info.GetValue(arg);

            PropertyManager.Build(propValue, propInfo);
        }