熟悉C++并尝试了C++ 11提供的一些新功能之后,我决定更熟悉C#.
正如所料,编程原理类似,但有些功能不同.差异和相似之处正是我所关注的,因此我决定问C#是否与C++ 11中的decltype相当?
int x = 4; decltype(x) y = 16;
c# c++ typeof decltype c++11
c# ×1
c++ ×1
c++11 ×1
decltype ×1
typeof ×1