小编May*_*zer的帖子

在控制台窗口上写希伯来语字符,C#

用户如何能够在控制台窗口中编写希伯来字符,该窗口现在显示问号,这就是我所拥有的:

        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)

c# unicode console readline hebrew

5
推荐指数
1
解决办法
1738
查看次数

Automapper Aftermap“找不到方法”异常

我正在尝试使用该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)

c# automapper

5
推荐指数
1
解决办法
3529
查看次数

在Telegram Bot中创建一个内联键盘按钮,指向一个URL C#

我还没有使用内联键盘按钮,我想实现它而不是发送链接点击,我想制作一个内联键盘按钮,当用户按下按钮它应该自动指向他给出的URL.

c# api button telegram telegram-bot

4
推荐指数
1
解决办法
2000
查看次数

标签 统计

c# ×3

api ×1

automapper ×1

button ×1

console ×1

hebrew ×1

readline ×1

telegram ×1

telegram-bot ×1

unicode ×1