simple types and string type

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hi!

For example you have value types and reference types.
If we say that an int is a simple type what would we say about the string
type except that it is a reference type ?


//Tony
 
Tony said:
Hi!

For example you have value types and reference types.
If we say that an int is a simple type what would we say about the string
type except that it is a reference type ?

It's an immutable reference type.
 
Harlan Messinger said:
It's an immutable reference type.

I know that but it was not that I meant.

I mean can I say that a string is a derived type.

//Tony
 
Tony said:
I know that but it was not that I meant.

I mean can I say that a string is a derived type.

Like all types, it's derived from System.Object. But that's all it's
derived from.
 
string and int both are "derived" from object, or is that not what you meant
either?
 
Tony Johansson said:
Hi!

For example you have value types and reference types.
If we say that an int is a simple type what would we say about the string
type except that it is a reference type ?


//Tony



.

Doesn't this come out roughly the equivalent of the following:

There are two types of people, "Type A", and "Type B". If I say "Fred" is
"Type C", then what can we say about "Judy"?

???

Mike
 
Doesn't this come out roughly the equivalent of the following:
There are two types of people, "Type A", and "Type B". If I say "Fred" is
"Type C", then what can we say about "Judy"?

???

Mike

Airplane is to sky as Automobile is to:

a) orange
b) 47
c) No, a tree falling the forest does not make a sound if no one is
there to hear it.

But of course the answer is always B.
 
Back
Top