Type.HasElementTypeImpl() Method is used when overridden in a derived class, implementing the HasElementType property and determines whether the current Type encompasses or refers to another type. It means this method checks whether the current Type is an array, a pointer, or is passed by reference.
Syntax: protected abstract bool HasElementTypeImpl ();
Return Value: This method returns true if the Type is an array, a pointer, or is passed by reference otherwise, false.
Below programs illustrate the use of Type.HasElementTypeImpl() Method:
myArray is not an array, pointer, or reference type.
The type of System.Int32[,,,,,,] is array.
- Difference between Method Overriding and Method Hiding in C#
- C# | Join() Method | Set - 1
- C# | Math.Abs() Method | Set - 2
- C# | StartsWith() Method
- Stack.Pop() Method in C#
- C# | Trim() Method
- C# | Math.Abs() Method | Set - 1
- C# | Math.Pow() Method
- Stack.Contains() Method in C#
- C# | Math.Exp() Method
- C# | Method Overriding
- C# | IndexOfAny() Method
- Decimal.Add() Method in C#
- C# | PadLeft() Method
- Method Hiding in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.