C# 类和实例构造函数

标签 c# constructor simd

MSDN RyuJIT blog entry给出了设置 CTP3 的说明:

Tricky thing necessary until RyuJIT is final: Add a reference to Microsoft.Numerics.Vectors.Vector to a class constructor that will be invoked BEFORE your methods that use the new Vector types. I’d suggest just putting it in your program’s entry class’s constructor. It must occur in the class constructor, not the instance constructor.

我在 Objective-C 中的类/实例构造比在 C# 中精通得多。他是在谈论一个不同的概念吗? C# 中的类构造函数和实例构造函数有什么区别?在这种情况下,“类构造函数”只是无参数构造函数吗?

最佳答案

我认为这是指静态构造函数

关于C# 类和实例构造函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23483285/

相关文章:

java - 那么这里关于参数的操作顺序是什么?

scala - 我需要一个具体示例,说明如何在不可变 _case_ 类的主构造函数中定义局部参数

c - Websocket 数据揭露/多字节异或

c# - 启动过程问题

c# - 什么是字符串格式 C# {0,12 :N0} (colon and commas) means?

c# - 通过 Web 服务器调用时 WCF 响应被截断

delphi - 为什么在通过元类类工厂实例化时不调用派生构造函数?

c - SIMD - AVX - 使用非零值而不是最高位进行屏蔽

c - 如何将 AVX vector 与 clang 原生 vector 语法(无内在函数)混合?

c# - 关于用户体验的意见 - C# Winforms