Reading a book about C# I noticed that sometimes is mentioned value type and sometimes primitive type for some data type (e.g. int, double). I thought they were the same thing, but they are really the same or not?
What is the difference between a value type and a primitive type? Are they the same thing?
EDIT
The question is not only related to C# programming Language, I was wondering how them are different even in any other language.
A value type is usually whatever type reside on the Stack .
A primitive type is a type defined at the programming language level, often it is even a value type, directly supported by the compiler of the language.
However this is a summary general answer because each programming language have different set of differences between the two types ...