/// <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); }
/// <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); }