Are primitive types different in Java and C#?

后端 未结 3 1247
梦谈多话
梦谈多话 2020-12-29 10:08

I am manually converting code from Java to C# and struggling with (what I call) primitive types (see, e.g. Do autoboxing and unboxing behave differently in Java and C#). Fro

3条回答
  •  悲哀的现实
    2020-12-29 10:39

    In C#, the best way to separate objects are by "Value Types" which are kinda like primitives - ints, bools, etc and "Reference Types" - classes etc.

提交回复
热议问题