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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version