Most common or vicious mistakes in C# development for experienced C++ programmers

后端 未结 13 1503
没有蜡笔的小新
没有蜡笔的小新 2020-12-23 19:10

What are the most common or vicious mistakes when experienced C++ programmers develop in C#?

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 19:34

    1. Using structs in favour for classes all the time.
    2. Using in, out and ref parameters all the time (This is a result of point 1).
    3. Using int values as error conditions instead of using exceptions
    4. Using the virtual keyword instead of override keyword.
    5. Thinking that char is an 8 bit signed value.

提交回复
热议问题