When overridden in a derived class, returns the type of the object encompassed or referred to by the current array, pointer or reference type. The type of the object encompassed or referred to by the current array, pointer, or reference type, or if the current type is not an array or a pointer, or is not passed by reference, or represents a gen
()
| 1124 | /// </summary> |
| 1125 | /// <returns>The type of the object encompassed or referred to by the current array, pointer, or reference type, or <see langword="null" /> if the current type is not an array or a pointer, or is not passed by reference, or represents a generic type or a type parameter in the definition of a generic type or generic method.</returns> |
| 1126 | public ScriptType GetElementType() |
| 1127 | { |
| 1128 | if (_managed != null) |
| 1129 | return new ScriptType(_managed.GetElementType()); |
| 1130 | if (_custom is ScriptTypeArray array) |
| 1131 | return array.ElementType; |
| 1132 | return Null; |
| 1133 | } |
| 1134 | |
| 1135 | /// <summary> |
| 1136 | /// Returns an array of type objects that represent the type arguments of a closed generic type or the type parameters of a generic type definition. |
no outgoing calls
no test coverage detected