我正在尝试在 C# 中解析一个文件,该文件具有由 ASCII 字符代码 0、1 和 2 分隔的字段(字符串)数组(在 Visual Basic 6 中,您可以使用 Chr(0) 或 Chr(1) 生成这些)等)
I'm trying to parse a file in C# that has field (string) arrays separated by ASCII character codes 0, 1 and 2 (in Visual Basic 6 you can generate these by using Chr(0) or Chr(1) etc.)
我知道对于 C# 中的字符代码 0,您可以执行以下操作:
I know that for character code 0 in C# you can do the following:
char separator = ' ';
但这对字符代码 1 和 2 不起作用?
But this doesn't work for character codes 1 and 2?
两个选项:
char c1 = 'u0001';
char c1 = (char) 1;
这篇关于如何从 C# 中的 ASCII 字符代码中获取字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
是否有执行 Excel NORMINV 函数的 C# 库?Is there a C# library that will perform the Excel NORMINV function?(是否有执行 Excel NORMINV 函数的 C# 库?)
从 C# 中的加权列表中选择 x 个随机元素(无需替换Select x random elements from a weighted list in C# (without replacement)(从 C# 中的加权列表中选择 x 个随机元素(无需替换))
给定轮班列表,创建时间表的摘要描述Create a summary description of a schedule given a list of shifts(给定轮班列表,创建时间表的摘要描述)
C# 普通随机数C# Normal Random Number(C# 普通随机数)
通用列表的标准偏差?Standard deviation of generic list?(通用列表的标准偏差?)
AsyncCTP:创建一个 IAwaitable 的类AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:创建一个 IAwaitable 的类)