HslReflectionHelper 方法 |
HslReflectionHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
![]() | GetHashCode | Serves as the default hash function. (继承自 Object。) |
![]() ![]() | GetHslDeviceAddressAttribute |
从属性中获取对应的设备类型的地址特性信息
|
![]() ![]() | GetHslDeviceAddressAttributeArray |
从属性中获取对应的设备类型的地址特性信息
|
![]() ![]() | GetHslPropertyInfos |
根据提供的类型对象,解析出符合 HslDeviceAddressAttribute 特性的地址列表
|
![]() ![]() | GetOperateResultJsonFromObj |
将一个对象转换成 OperateResultT 的string 类型的对象,用于远程RPC的数据交互
|
![]() ![]() | GetParametersFromJson(MethodInfo, ParameterInfo) |
从方法的参数列表里,提取出实际的示例参数信息,返回一个json对象,注意:该数据是示例的数据,具体参数的限制参照服务器返回的数据声明。 From the parameter list of the method, extract the actual example parameter information, and return a json object. Note: The data is the example data, and the specific parameter restrictions refer to the data declaration returned by the server. |
![]() ![]() | GetParametersFromJson(ISessionContext, HttpListenerRequest, 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 |
![]() ![]() | GetParametersFromUrl |
从url数据里解析出真实的数据信息,根据方法参数列表的类型进行反解析,然后返回实际的数据数组 Analyze the real data information from the url data, perform de-analysis according to the type of the method parameter list, and then return the actual data array |
![]() | GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
![]() ![]() | PraseStructContent(Object, Byte, Int32, IByteTransform) |
根据结构体的定义,将原始字节的数据解析出来,然后赋值给对应的对象,该对象的属性需要支持特性 HslStructAttribute 才支持设置
|
![]() ![]() | PraseStructContentT(Byte, Int32, IByteTransform) |
根据类型信息,直接从原始字节解析出类型对象,然后赋值给对应的对象,该对象的属性需要支持特性 HslStructAttribute 才支持设置
|
![]() ![]() | ReadT(IReadWriteNet) |
从设备里读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考论坛的操作说明。
|
![]() ![]() | ReadT(RedisClient) |
从设备里读取支持Hsl特性的数据内容,
该特性为HslRedisKeyAttribute,HslRedisListItemAttribute,
HslRedisListAttribute,HslRedisHashFieldAttribute
详细参考代码示例的操作说明。
|
![]() ![]() | ReadAsyncT(IReadWriteNet) |
从设备里读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考论坛的操作说明。
|
![]() ![]() | ReadAsyncT(RedisClient) |
从设备里读取支持Hsl特性的数据内容,
该特性为HslRedisKeyAttribute,HslRedisListItemAttribute,
HslRedisListAttribute,HslRedisHashFieldAttribute
详细参考代码示例的操作说明。
|
![]() ![]() | SetPropertyExpT, K |
使用表达式树的方式来给一个属性赋值
|
![]() ![]() | SetPropertyValueFrom |
根据地址列表信息,数据缓存,自动解析基础类型的数据,赋值到自定义的对象上去
|
![]() | ToString | Returns a string that represents the current object. (继承自 Object。) |
![]() ![]() | WriteT(T, IReadWriteNet) |
从设备里读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考论坛的操作说明。
|
![]() ![]() | WriteT(T, RedisClient) |
从设备里写入支持Hsl特性的数据内容,
该特性为HslRedisKeyAttribute ,HslRedisHashFieldAttribute
需要注意的是写入并不支持HslRedisListAttribute,HslRedisListItemAttribute特性,详细参考代码示例的操作说明。
|
![]() ![]() | WriteAsyncT(T, IReadWriteNet) |
从设备里读取支持Hsl特性的数据内容,该特性为HslDeviceAddressAttribute,详细参考论坛的操作说明。
|
![]() ![]() | WriteAsyncT(T, RedisClient) |
从设备里写入支持Hsl特性的数据内容,
该特性为HslRedisKeyAttribute ,HslRedisHashFieldAttribute
需要注意的是写入并不支持HslRedisListAttribute,HslRedisListItemAttribute特性,详细参考代码示例的操作说明。
|
名称 | 说明 | |
---|---|---|
![]() | ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |