SoftBasic 方法 |
SoftBasic 类型公开以下成员。
名称 | 说明 | |
---|---|---|
AddArrayDataT |
一个通用的数组新增个数方法,会自动判断越界情况,越界的情况下,会自动的截断或是填充 A common array of new methods, will automatically determine the cross-border situation, in the case of cross-border, will be automatically truncated or filled | |
ArrayExpandToLengthT |
将一个数组进行扩充到指定长度,或是缩短到指定长度 Extend an array to a specified length, or shorten to a specified length or fill | |
ArrayExpandToLengthEvenT |
将一个数组进行扩充到偶数长度 Extend an array to even lengths | |
ArrayFormatT(T) |
将数组格式化为显示的字符串的信息,支持所有的类型对象 Formats the array into the displayed string information, supporting all types of objects | |
ArrayFormatT(T) |
将数组格式化为显示的字符串的信息,支持所有的类型对象 Formats the array into the displayed string information, supporting all types of objects | |
ArrayFormatT(T, String) |
将数组格式化为显示的字符串的信息,支持所有的类型对象 Formats the array into the displayed string information, supporting all types of objects | |
ArrayFormatT(T, String) |
将数组格式化为显示的字符串的信息,支持所有的类型对象 Formats the array into the displayed string information, supporting all types of objects | |
ArrayRemoveBeginT |
将一个数组的前面指定位数移除,返回新的一个数组 Removes the preceding specified number of bits in a array, returning a new array | |
ArrayRemoveDoubleT |
将一个数组的前后移除指定位数,返回新的一个数组 Removes a array before and after the specified number of bits, returning a new array | |
ArrayRemoveLastT |
将一个数组的后面指定位数移除,返回新的一个数组 Removes the specified number of digits after a array, returning a new array | |
ArraySelectBeginT |
选择一个数组的前面的几个数据信息 Select the begin few items of data information of a array | |
ArraySelectLastT |
选择一个数组的后面的几个数据信息 Select the last few items of data information of a array | |
ArraySelectMiddleT |
获取到数组里面的中间指定长度的数组 Get an array of the specified length in the array | |
ArraySplitByLengthT |
将指定的数据按照指定长度进行分割,例如int[10],指定长度4,就分割成int[4],int[4],int[2],然后拼接list Divide the specified data according to the specified length, such as int [10], and specify the length of 4 to divide into int [4], int [4], int [2], and then concatenate the list | |
AsciiBytesToBytes |
将ascii格式的byte数组转换成原始的byte数组 Converts an ASCII-formatted byte array to the original byte array | |
BoolArrayToByte |
将bool数组转换到byte数组 Converting a bool array to a byte array | |
BoolArrayToString |
将bool数组转换为字符串进行显示,true被转为1,false转换为0 Convert the bool array to a string for display, true is converted to 1, false is converted to 0 | |
BoolOnByteIndex |
获取byte数据类型的第offset位,是否为True Gets the index bit of the byte data type, whether it is True | |
BuildAsciiBytesFrom(Byte) |
从字节构建一个ASCII格式的数据内容 Build an ASCII-formatted data content from bytes | |
BuildAsciiBytesFrom(Byte) |
从字节数组构建一个ASCII格式的数据内容 Byte array to construct an ASCII format data content | |
BuildAsciiBytesFrom(Int16) |
从short构建一个ASCII格式的数据内容 Constructing an ASCII-formatted data content from a short | |
BuildAsciiBytesFrom(UInt16) |
从ushort构建一个ASCII格式的数据内容 Constructing an ASCII-formatted data content from ushort | |
BuildAsciiBytesFrom(UInt32) |
从uint构建一个ASCII格式的数据内容 Constructing an ASCII-formatted data content from uint | |
BytesReverseByWord |
将byte数组按照双字节进行反转,如果为单数的情况,则自动补齐 Reverses the byte array by double byte, or if the singular is the case, automatically | |
BytesToAsciiBytes |
将原始的byte数组转换成ascii格式的byte数组 Converts the original byte array to an ASCII-formatted byte array | |
ByteToBoolArray(Byte) |
从Byte数组中提取所有的位数组 Extracts a bit array from a byte array, length represents the number of digits | |
ByteToBoolArray(Byte, Int32) |
从Byte数组中提取位数组,length代表位数,例如数组 03 A1 长度10转为 [1100 0000 10] Extracts a bit array from a byte array, length represents the number of digits | |
ByteToBoolArray(Byte, Int32, Byte) |
从Byte数组中提取位数组,length代表位数,例如数组 01 00 长度10转为 [true,false] | |
ByteToHexString(Byte) |
字节数据转化成16进制表示的字符串 Byte data into a string of 16 binary representations | |
ByteToHexString(String) |
字符串数据转化成16进制表示的字符串 String data into a string of 16 binary representations | |
ByteToHexString(Byte, Char) |
字节数据转化成16进制表示的字符串 Byte data into a string of 16 binary representations | |
ByteToHexString(Byte, Char, Int32, String) |
字节数据转化成16进制表示的字符串 Byte data into a string of 16 binary representations | |
CalculateFileMD5 |
获取文件的md5码 Get the MD5 code of the file | |
CalculateStreamMD5(Bitmap) |
获取内存图片的md5码 Get the MD5 code of the memory picture | |
CalculateStreamMD5(Stream) |
获取数据流的md5码 Get the MD5 code for the data stream | |
CalculateStreamMD5(String) |
获取文本字符串信息的Md5码,编码为UTF8 Get the Md5 code of the text string information, using the utf-8 encoding | |
CalculateStreamMD5(String, Encoding) |
获取文本字符串信息的Md5码,使用指定的编码 Get the Md5 code of the text string information, using the specified encoding | |
DeepClone |
使用序列化反序列化深度克隆一个对象,该对象需要支持序列化特性 Cloning an object with serialization deserialization depth that requires support for serialization attributes | |
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。) | |
GetAsciiStringRender |
将字节数组显示为ASCII格式的字符串,当遇到0x20以下及0x7E以上的不可见字符时,使用十六进制的数据显示 Display the byte array as a string in ASCII format, when encountering invisible characters below 0x20 and above 0x7E, use hexadecimal data to display | |
GetEnumFromStringTEnum |
从字符串的枚举值数据转换成真实的枚举值数据 Convert enumeration value data from strings to real enumeration value data | |
GetEnumValuesTEnum |
获取一个枚举类型的所有枚举值,可直接应用于组合框数据 Gets all the enumeration values of an enumeration type that can be applied directly to the combo box data | |
GetExceptionMessage(Exception) |
获取一个异常的完整错误信息 Gets the complete error message for an exception | |
GetExceptionMessage(String, Exception) |
获取一个异常的完整错误信息,和额外的字符串描述信息 Gets the complete error message for an exception, and additional string description information | |
GetFromAsciiStringRender |
从显示的ASCII格式的字符串,转为原始字节数组,如果遇到 \00 这种表示原始字节的内容,则直接进行转换操作,遇到 \r 直接转换 0x0D, \n 直接转换 0x0A Convert from the displayed string in ASCII format to the original byte array. If you encounter \00, which represents the original byte content, the conversion operation is performed directly. When encountering \r, it is directly converted to 0x0D, and \n is directly converted to 0x0A. | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetSizeDescription |
从一个字节大小返回带单位的描述,主要是用于显示操作 Returns a description with units from a byte size, mainly for display operations | |
GetTimeSpanDescription |
从一个时间差返回带单位的描述,主要是用于显示操作。 Returns a description with units from a time difference, mainly for display operations. | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
GetUniqueStringByGuidAndRandom |
获取一串唯一的随机字符串,长度为20,由Guid码和4位数的随机数组成,保证字符串的唯一性 Gets a string of unique random strings with a length of 20, consisting of a GUID code and a 4-digit random number to guarantee the uniqueness of the string | |
GetValueFromJsonObjectT |
一个泛型方法,提供json对象的数据读取 A generic method that provides data read for a JSON object | |
GetXmlValueT |
一个泛型的方法,提供XML对象的数据读取为实际的数据,支持BCL的基础类型。 A generic method that provides data for XML objects to be read as actual data, supporting the underlying types of BCL. | |
HexStringToBytes |
将16进制的字符串转化成Byte数据,将检测每2个字符转化,也就是说,中间可以是任意字符 Converts a 16-character string into byte data, which will detect every 2 characters converted, that is, the middle can be any character | |
IsByteTokenEquel |
判断两个数据的令牌是否相等 Determines whether the tokens of two data are equal | |
IsTwoBytesEquel(Byte, Byte) |
判断两个字节的指定部分是否相同 Determines whether the specified portion of a two-byte is the same | |
IsTwoBytesEquel(Byte, Int32, Byte, Int32, Int32) |
判断两个字节的指定部分是否相同 Determines whether the specified portion of a two-byte is the same | |
IsTwoTokenEquel |
判断两个数据的令牌是否相等 Determines whether the tokens of two data are equal | |
JsonSetValueT |
一个泛型方法,提供json对象的数据写入 A generic method that provides data writing to a JSON object | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
SetBoolOnByteIndex |
设置取byte数据类型的第offset位,是否为True Set the offset bit of the byte data type, whether it is True | |
ShowExceptionMessage(Exception) |
显示一个完整的错误信息 Displays a complete error message | |
ShowExceptionMessage(String, Exception) |
显示一个完整的错误信息,和额外的字符串描述信息 Displays a complete error message, and additional string description information | |
SpliceArrayT |
拼接任意个泛型数组为一个总的泛型数组对象,采用深度拷贝实现。 Splicing any number of generic arrays into a total generic array object is implemented using deep copy. | |
SpliceStringArray(String, String) |
将一个String的数组和多个String 类型的对象整合成一个数组 Combine an array of String and multiple objects of type String into an array | |
SpliceStringArray(String, String, String) |
将两个String的数组和多个String 类型的对象整合成一个数组 Combine two arrays of String and multiple objects of type String into one array | |
SpliceStringArray(String, String, String, String) |
将两个String的数组和多个String 类型的对象整合成一个数组 Combine two arrays of String and multiple objects of type String into one array | |
SplitIntegerToArray |
将整数进行有效的拆分成数组,指定每个元素的最大值 Effectively split integers into arrays, specifying the maximum value for each element | |
ToString | Returns a string that represents the current object. (继承自 Object。) | |
UrlDecode |
将url的编码解码为真实的字符串,例如 %2F%E4%B8%AD%E6%96%87 解码为 中文 Decode the encoding of url as a real string, for example %2F%E4%B8%AD%E6%96%87 to 中文 | |
UrlEncode |
将字符串编码为URL可以识别的字符串,中文会被编码为%开头的数据,例如 中文 转义为 %2F%E4%B8%AD%E6%96%87 Encoding a string as a URL-recognizable string Chinese encoded as data that begins with %, such as 中文 escaped as %2F%E4%B8%AD%E6%96%87 |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |