HslStructAttribute 类 |
命名空间: HslCommunication.Reflection
HslStructAttribute 类型公开以下成员。
名称 | 说明 | |
---|---|---|
HslStructAttribute(Int32) |
指定偏移地址来实例化一个对象
| |
HslStructAttribute(Int32, Int32) |
指定偏移地址和长度信息来实例化一个对象
| |
HslStructAttribute(Int32, Int32, String) |
指定偏移地址,长度信息,编码信息来实例化一个对象,通常应用于字符串数据
|
名称 | 说明 | |
---|---|---|
Encoding |
编码信息,如果是字符串类型,则表示字符串的编码信息,可选 ASCII UNICODE UTF8 GB2312 ANSI BIG-UNICODE
| |
Index |
字节偏移字节信息,如果是bool,就是位偏移地址,按照位为单位
| |
Length |
长度信息,如果是普通类型,则表示数组,如果是字符串,则表示字符串占用的最大字节长度
| |
TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (继承自 Attribute。) |
名称 | 说明 | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (继承自 Attribute。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Returns the hash code for this instance. (继承自 Attribute。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (继承自 Attribute。) | |
Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (继承自 Attribute。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ToString | Returns a string that represents the current object. (继承自 Object。) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |