在C++中,有很多方法可以编写编译的代码,但会产生未定义的行为(维基百科).C#中有类似的东西吗?我们可以用编译的C#编写代码,但是有未定义的行为吗?
c# c++ undefined-behavior
c# ×1
c++ ×1
undefined-behavior ×1