C# Type IsAutoClass
Description
Type IsAutoClass
gets a value indicating whether the
string format attribute AutoClass is selected for the Type.
Syntax
Type.IsAutoClass
has the following syntax.
public bool IsAutoClass { get; }
Example
using System;//www . j a v a2 s.co m
class TestIsArray
{
public static void Main()
{
int [] array = {1,2,3,4};
Type at = typeof(Array);
Type t = array.GetType();
Console.WriteLine("The type is {0}. Is this type an array? {1}", at, at.IsAutoClass);
}
}
The code above generates the following result.