[英]What does String* mean in C#?
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. 编辑:看起来不是C#,这可以解释它。 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.
我正在查看的特定代码示例非常短(5个字),并且我认为从上下文来看这是C#。
I was sure I'd seen it before, but my hazy memories were probably from other languages too. 我确定我曾经看过它,但是我朦胧的记忆可能也来自其他语言。
String*
? String*
? Are you sure it's C#? 您确定它是C#吗? You can't have pointers to reference types in C#.
C#中没有指向引用类型的指针 。 Unless
String
is a defined struct
or something in that specific code... 除非
String
是已定义的struct
或该特定代码中的某些内容,否则...
您确定不查看托管C ++示例吗?
您可以在不安全的代码块中的C#中使用指针,但我仅将它们用于值类型或值类型数组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.