C# TypeInfo IsAutoClass

Description

TypeInfo IsAutoClass Gets a value indicating whether the string format attribute AutoClass is selected for the Type.

Syntax

TypeInfo.IsAutoClass has the following syntax.


public bool IsAutoClass { get; }

Example


//from w  w  w. ja va  2s  .  co m
using System;
class TestIsArray 
{
    public static void Main() 
    {
        int [] array = {1,2,3,4};
        Type at = typeof(Array);
        Console.WriteLine(at.IsAutoClass);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Reflection »




EventInfo
FieldInfo
MemberInfo
MethodInfo
ParameterInfo
TypeInfo