int[] arr = { 1, 2, 3 }; Type elementType = arr.GetType().GetElementType(); Console.WriteLine(elementType); // Output: System.Int32This code uses the GetType() method to get the type of the arr object, and then calls the GetElementType() method on it to retrieve the element type (which is int in this case). This method is included in the .NET Framework class library, which can be found in the System namespace.