C# | Type.IsArrayImpl() Method Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report Type.IsArrayImpl() Method is used when overridden in a derived class, implements the IsArray property and determines whether the Type is an array. Syntax: protected abstract bool IsArrayImpl (); Return Value: This method returns true if the Type is an array otherwise, false. Below programs illustrate the use of Type.IsArrayImpl() Method: Example 1: csharp // C# program to demonstrate the // Type.IsArrayImpl() Method using System; using System.Globalization; using System.Reflection; class GFG { // Main Method public static void Main() { // creating and initializing object of MyClass MyClass mytype = new MyClass(typeof(int)); // checking if mytype has any // elementtype or not if (mytype.HasElementType) Console.WriteLine("The type of myArray is {0}.", mytype.elementtype); else Console.WriteLine("myArray is not an array, pointer,"+ "or reference type."); } } // Defining MyClass extended from TypeDelegator public class MyClass : TypeDelegator { // creating and initializing // elementtype with null public string elementtype = null; // creating and initializing // type with null private Type type = null; // Constructor public MyClass(Type type) : base(type) { this.type = type; } // Override Type.IsArrayImpl(). protected override bool IsArrayImpl() { // Determine whether the type is an array. if (type.IsArray) { elementtype = "array"; return true; } // Return false if the type is not // a reference, array, or pointer type. return false; } } Output: myArray is not an array, pointer,or reference type. Example 2: csharp // C# program to demonstrate the // Type.IsArrayImpl() Method using System; using System.Globalization; using System.Reflection; class GFG { // Main Method public static void Main() { // creating and initializing object of MyClass MyClass mytype = new MyClass(typeof(int[,,,, ])); // checking if mytype has // any elementtype or not if (mytype.HasElementType) Console.WriteLine("The type of {0} is array.", mytype.type); else Console.WriteLine("myArray is not an array,"+ "pointer, or reference type."); } } // Defining MyClass extended from TypeDelegator public class MyClass : TypeDelegator { // creating and initializing // elementtype with null public string elementtype = null; // creating and initializing // type with null public Type type = null; // Constructor public MyClass(Type type) : base(type) { this.type = type; } // Override Type.IsArrayImpl(). protected override bool IsArrayImpl() { // Determine whether the // type is an array. if (type.IsArray) { elementtype = "array"; return true; } // Return false if the type is not // a reference, array, or pointer type. return false; } } Output: The type of System.Int32[,,,,] is array. Reference: https://learn.microsoft.com/en-us/dotnet/api/system.type.isarrayimpl?view=netframework-4.8 Comment More infoAdvertise with us Next Article C# | Type.HasElementTypeImpl() Method R rohitprasad3 Follow Improve Article Tags : C# CSharp-method CSharp-Type-Class Similar Reads C# | Type.GetTypeArray() Method Type.GetTypeArray() Method is used to get the types of the objects in the specified array. Syntax: public static Type[] GetTypeArray (object[] args); Here, it takes an array of objects whose types to determine. Return Value: This method returns an array of Type objects representing the types of the 2 min read C# | Type.Equals() Method Type.Equals() Method is used to check whether the underlying system type of the current Type is the same as the underlying system type of the specified Object or Type. There are 2 methods in the overload list of this method as follows: Equals(Type) Method Equals(Object) Method Type.Equals(Type) Meth 4 min read C# | Type.HasElementTypeImpl() Method 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. 3 min read C# | Type.GetInterface() Method Type.GetInterface() Method is used to gets a specific interface implemented or inherited by the current Type. GetInterface(String) Method This method is used to search for the interface with the specified name. Syntax: public Type GetInterface (string name); Here, it takes the string containing the 4 min read C# | Type.GetTypeHandle() Method Type.GetTypeHandle() Method is used to get the handle for the Type of a specified object. Syntax: public static RuntimeTypeHandle GetTypeHandle (object o); Here, it takes the object for which to get the type handle. Return Value: This method returns The handle for the Type of the specified Object. E 2 min read C# | Type.IsEnumDefined() Method Type.IsEnumDefined(Object) Method is used to return a value which indicates whether the specified value exists in the current enumeration type. Syntax: public virtual bool IsEnumDefined (object value); Here, it takes the value to be tested. Return Value: This method returns true if the specified val 3 min read Like