点击或拖拽改变大小

HslReflectionHelper.GetParametersFromJson 方法 (ISessionContext,ParameterInfo[], String)

从Json数据里解析出真实的数据信息,根据方法参数列表的类型进行反解析,然后返回实际的数据数组
Analyze the real data information from the Json data, perform de-analysis according to the type of the method parameter list, and then return the actual data array

命名空间:  HslCommunication.Reflection
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static Object[] GetParametersFromJson(
	ISessionContext context,
	ParameterInfo[] parameters,
	string json
)

参数

context
类型:HslCommunication.Core.ISessionContext
当前的会话内容
parameters
类型:System.Reflection.ParameterInfo[]
提供的参数列表信息
json
类型:System.String
参数变量信息

返回值

类型:Object[]
已经填好的实际数据的参数数组对象
参见