用户如何能够在控制台窗口中编写希伯来字符,该窗口现在显示问号,这就是我所拥有的:
Encoding hebrewEncoding = Encoding.GetEncoding("Windows-1255");
Console.InputEncoding = Encoding.GetEncoding("Windows-1255");
Console.WriteLine("Write your input:");
string Input = Console.ReadLine();
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用该AfterMap方法将输入类展平为输出。输入类如下所示:
public class FooDTO {
public string SomeFieldA { get; set; }
public string SomeFieldB { get; set; }
....
public BarDTO SomeFieldY { get; set; }
public BazDTO SomeFieldZ { get; set; }
}
public class BarDTO {
public string SomeOtherFieldA { get; set; }
}
public class BazDTO {
public string YetAnotherFieldA { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
和输出类如下:
public class Foo {
public string SomeFieldA { get; set; }
public string SomeFieldB { get; set; } …Run Code Online (Sandbox Code Playgroud) 我还没有使用内联键盘按钮,我想实现它而不是发送链接点击,我想制作一个内联键盘按钮,当用户按下按钮它应该自动指向他给出的URL.
c# ×3
api ×1
automapper ×1
button ×1
console ×1
hebrew ×1
readline ×1
telegram ×1
telegram-bot ×1
unicode ×1