English 中文(简体)
如何在 C# 中插入 和 操作员? [已关闭]
原标题:How to insert | and || operators in C#? [closed]
  • 时间:2012-05-27 20:49:59
  •  标签:
  • c#
  • .net
Closed. This question is off-topic. It is not currently accepting answers.

要改进这个问题吗? 更新了问题 ,因此堆积溢流的回答是

Closed 11 years ago.

在 VB.NET 中, 我可以在键盘上快速键入和/ Andso。 在 C# 中, 我目前正在打开字符地图, 手动复制 OR 垂直线字符 。 我是不是漏掉了能快速插入线符号的东西?

最佳回答

在许多键盘(英国/美国)上,它也称为ipiputa 键,它是一条单一断裂的垂直线(一些键盘是一条单条未断断的垂直线,但我大多认为这是一条断裂的垂直线)。

照片来自这里

"https://i.sstatic.net/0tW8S.jpg" alt="管道键"/ >

问题回答

我不知道你来自哪里,但假设你有一个非英语键盘。 不幸的是,C语言(这个和其他合成元素)起源于英语标准键盘。

我知道瑞典的一些人在编码时正在切换到英语键盘布局 - 以摆脱键C/C#字符的尴尬位置, 如 。 (他们都是需要 AltGr 键的组合。 必须做一些事情才能为瑞典字符 设置位置, 所有人都有自己的密钥 。)

取决于键盘布局,但 / ipop 应该是在输入键左侧的某个地方(US 版式),或者在 1 左侧的某个地方(第一个正常,另一个与 AltGr, UK版式)。

只要您有 PIPE 键, 您可以在数字键盘键盘上键入, 并按住 ALT 键, 数字 124

我有“管道”符号为altGr +1





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...