What does String*
mean in C#?
String *在C#中的含义是什么?
I've seen this used in code examples but I can't derive from the context, and you can't search on this, due to the * being accepted as a wildcard in every search engine ever.
我已经在代码示例中看到过这种情况,但我无法从上下文中获取,并且由于*在每个搜索引擎中都被接受为通配符,因此无法对此进行搜索。
EDIT: Looks like it wasn't C#, which explains it. The specific code sample I'm looking at is extremely short (5 words) and I assumed it was mean to be C# from the context.
编辑:看起来它不是C#,它解释了它。我正在查看的特定代码示例非常短(5个单词),我认为它是从上下文中成为C#的意思。
I was sure I'd seen it before, but my hazy memories were probably from other languages too.
我确信我以前见过它,但我的朦胧记忆也可能来自其他语言。
3 个解决方案
#1
String*
? Are you sure it's C#? You can't have pointers to reference types in C#. Unless String
is a defined struct
or something in that specific code...
串*?你确定它是C#吗?你不能在C#中有引用类型的指针。除非String是特定代码中定义的结构或某些东西......
#2
You sure you are not looking at Managed C++ examples?
您确定不是在查看托管C ++示例吗?
#3
You can use pointers in C# in unsafe code blocks, but I've only used them with value types or arrays of value types.
您可以在不安全的代码块中使用C#中的指针,但我只将它们与值类型或值类型数组一起使用。
#1
String*
? Are you sure it's C#? You can't have pointers to reference types in C#. Unless String
is a defined struct
or something in that specific code...
串*?你确定它是C#吗?你不能在C#中有引用类型的指针。除非String是特定代码中定义的结构或某些东西......
#2
You sure you are not looking at Managed C++ examples?
您确定不是在查看托管C ++示例吗?
#3
You can use pointers in C# in unsafe code blocks, but I've only used them with value types or arrays of value types.
您可以在不安全的代码块中使用C#中的指针,但我只将它们与值类型或值类型数组一起使用。