Type.HasElement Type -
"Gets a value indicating whether the current Type encompasses or refers to
another type; that is, whether the current Type is an array, a pointer, or
is passed by reference." So why does this return false? String is passed
by ref and is a ref type.
string s = "text";
Console.WriteLi ne("String hasElement:" + s.GetType().Has ElementType);
Output:
String hasElement:Fals e
--
William Stacey, MVP
"Gets a value indicating whether the current Type encompasses or refers to
another type; that is, whether the current Type is an array, a pointer, or
is passed by reference." So why does this return false? String is passed
by ref and is a ref type.
string s = "text";
Console.WriteLi ne("String hasElement:" + s.GetType().Has ElementType);
Output:
String hasElement:Fals e
--
William Stacey, MVP
Comment