+ 1
Reference types
How can I figure out whether datatype is referense type or not? And how can I create my own not reference datatype?
2 Respuestas
+ 2
public bool IsValueType<T>()
{ return typeof(T).IsValueType; }
0
As per I know string is reference type another datatype are value like int float char. If u want to create own value type you can create structs