M
Matt
I want to know if "int" is a primitive type, or an object?
For example, the following two approaches yield the same result.
And people said "int" is a C# alias for "System.Int32". If this is the case,
can we say "int" is an object??
Because methods should operate on object, not on primitive type.
object1.method(...); //make sense
primitiveType.method(); //doesn't make sense ??
Please advise. Thanks!
For example, the following two approaches yield the same result.
int t1 = int.Parse(TextBox2.Text); //method 1
int t2 = System.Int32.Parse(TextBox2.Text); //method 2
And people said "int" is a C# alias for "System.Int32". If this is the case,
can we say "int" is an object??
Because methods should operate on object, not on primitive type.
object1.method(...); //make sense
primitiveType.method(); //doesn't make sense ??
Please advise. Thanks!